/* Floating Badge & Form Styles */

:root {
    --inv-primary: #1b4d3e; /* Forest Green / Estate theme */
    --inv-primary-hover: #13382c;
    --inv-accent: #d4af37; /* Gold accent */
    --inv-bg-glass: rgba(255, 255, 255, 0.85);
    --inv-text: #2c3e50;
    --inv-text-light: #7f8c8d;
    --inv-border: rgba(0, 0, 0, 0.1);
    --inv-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Floating Action Button */
.inv-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--inv-primary);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999999;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
}

.inv-floating-btn:hover {
    background-color: var(--inv-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.inv-floating-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.inv-floating-btn:hover svg {
    transform: rotate(-10deg) scale(1.1);
}

/* Modal Overlay */
.inv-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.inv-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Box */
.inv-modal-box {
    background: var(--inv-bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--inv-shadow);
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    padding: 35px;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--inv-text);
}

.inv-modal-overlay.active .inv-modal-box {
    transform: scale(1) translateY(0);
}

/* Close Button */
.inv-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--inv-text-light);
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    padding: 5px;
}

.inv-modal-close:hover {
    color: #c0392b;
}

/* Form Headers */
.inv-modal-box h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--inv-primary);
}

.inv-modal-box p {
    margin: 0 0 25px 0;
    font-size: 14px;
    color: var(--inv-text-light);
    line-height: 1.5;
}

/* Form Elements */
.inv-form-group {
    margin-bottom: 20px;
    position: relative;
}

.inv-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--inv-primary);
}

.inv-form-group input,
.inv-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--inv-border);
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    font-size: 14px;
    color: var(--inv-text);
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.inv-form-group input:focus,
.inv-form-group textarea:focus {
    outline: none;
    border-color: var(--inv-primary);
    box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.15);
}

/* Submit Button */
.inv-submit-btn {
    width: 100%;
    background-color: var(--inv-primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.inv-submit-btn:hover {
    background-color: var(--inv-primary-hover);
}

.inv-submit-btn:active {
    transform: scale(0.98);
}

.inv-submit-btn:disabled {
    background-color: var(--inv-text-light);
    cursor: not-allowed;
}

/* Feedback Messages */
.inv-feedback-msg {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
    line-height: 1.4;
}

.inv-feedback-msg.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.inv-feedback-msg.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Loading Spinner */
.inv-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: inv-spin 0.8s linear infinite;
}

@keyframes inv-spin {
    to { transform: rotate(360deg); }
}

.inv-submit-btn.loading .inv-spinner {
    display: inline-block;
}
