/* LSMT Form & Floating Brochure Button Styling */

/* Floating Button Styling */
.floating-btn {
    background-color: #D4AF37;
    /* Brand Gold */
    color: #0F2C59;
    /* Brand Navy */
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 25px -5px rgba(212, 175, 55, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    position: fixed;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    width: fit-content;
}

.floating-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Desktop positioning - Bottom Right Pill style */
@media screen and (min-width: 769px) {
    .floating-btn {
        right: 30px;
        bottom: 30px;
        padding: 14px 28px;
        border-radius: 9999px; /* Pill shape */
        font-size: 16px;
        gap: 8px;
    }

    .floating-btn svg {
        width: 18px;
        height: 18px;
    }

    .floating-btn:hover {
        background-color: #B8962D;
        /* Darker Gold hover */
        box-shadow: 0 12px 30px -5px rgba(212, 175, 55, 0.6);
        transform: translateY(-4px);
        /* Float upwards slightly */
        color: #0F2C59;
    }
}

/* Mobile positioning */
@media screen and (max-width: 768px) {
    .floating-btn {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 360px;
        justify-content: center;
        padding: 14px 24px;
        border-radius: 30px;
        gap: 8px;
        font-size: 15px;
        box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    }

    .floating-btn svg {
        width: 18px;
        height: 18px;
    }

    .floating-btn:hover {
        background-color: #B8962D;
        box-shadow: 0 12px 25px rgba(212, 175, 55, 0.5);
        transform: translateX(-50%) translateY(-2px);
        color: #0F2C59;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    /* Custom slate overlay */
    backdrop-filter: blur(4px);
    /* High-end blur effect */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-container {
    background-color: white;
    width: 90%;
    max-width: 480px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    padding: 24px;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 8px;
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #0F2C59;
    /* Brand Navy */
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #94A3B8;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #0F2C59;
}

/* Form Styles */
.form-group1 {
    margin-bottom: 0;
}

.textinput,
.selectinput {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #0F172A;
    background-color: #FFFFFF;
    transition: all 0.2s ease;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.textinput::placeholder {
    color: #94A3B8;
}

.textinput:focus,
.selectinput:focus {
    border-color: #0F2C59;
    /* Focus on Brand Navy */
    box-shadow: 0 0 0 3px rgba(15, 44, 89, 0.15);
    outline: none;
}

label,
label p {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 4px;
    margin-top: 4px;
    text-align: left;
}

/* Security Notice */
.security-notice {
    background-color: #FBF6E9;
    /* Light Gold background */
    border: 1px solid rgba(212, 175, 55, 0.2);
    text-align: center;
    padding: 8px 10px;
    border-radius: 8px;
    margin: 10px 0;
}

.security-notice span {
    font-size: 13px;
    color: #8A6D15;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Override inline yellow security notice in the Hero Form */
#myForm div[style*="background-color: #e4c34e"] {
    background-color: #FBF6E9 !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    margin-top: 10px !important;
    box-shadow: none !important;
}

#myForm div[style*="background-color: #e4c34e"] span {
    color: #8A6D15 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

/* Submit Buttons styling */
#leadform,
#leadform1 {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Hero Submit Button - Gold Theme */
#leadform {
    background-color: #D4AF37;
    /* Gold */
    color: #0F2C59;
    /* Navy Text */
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

#leadform:hover {
    background-color: #B8962D;
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.5);
    transform: translateY(-1px);
}

#leadform:active {
    transform: translateY(0);
}

/* Modal Submit Button - Navy Theme */
#leadform1 {
    background-color: #0F2C59;
    /* Navy */
    color: #FFFFFF;
    margin-top: 10px;
    padding: 12px;
    box-shadow: 0 4px 10px rgba(15, 44, 89, 0.2);
}

#leadform1:hover {
    background-color: #071E3D;
    box-shadow: 0 6px 15px rgba(15, 44, 89, 0.3);
    transform: translateY(-1px);
}

#leadform1:active {
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        padding: 20px;
    }

    .modal-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {

    .textinput,
    .selectinput,
    #leadform,
    #leadform1 {
        padding: 12px;
        font-size: 0.9rem;
    }

    .modal-container {
        padding: 15px;
    }
}