/* Enhanced Contact Form Styles */

/* Contact Form Card */
.contact-form-card {
    background: rgba(40, 75, 113, 0.95);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

@media (max-width: 767px) {
    .contact-form-card {
        padding: 30px 15px;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        margin: 0;
    }
}

/* Floating Label Container */
.form-floating-group {
    position: relative;
    margin-bottom: 24px;
}

/* Floating Inputs */
.floating-input {
    height: 54px;
    padding: 20px 16px 8px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.floating-textarea {
    height: auto !important;
    min-height: 120px;
    padding-top: 24px;
    resize: vertical;
}

/* Floating Labels */
.floating-label {
    position: absolute;
    left: 16px;
    top: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    pointer-events: none;
    background: transparent;
}

/* Label moves up when input is focused or has value */
.floating-input:focus + .floating-label,
.floating-input:not(:placeholder-shown) + .floating-label {
    top: 8px;
    left: 16px;
    font-size: 12px;
    color: #e5c466;
    font-weight: 500;
}

/* Focus States */
.floating-input:focus {
    outline: none;
    border-color: #e5c466;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(229, 196, 102, 0.2);
}

/* Placeholder styling */
.floating-input::placeholder {
    color: transparent;
}

.floating-input:focus::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Textarea specific */
.floating-textarea + .floating-label {
    top: 20px;
}

.floating-textarea:focus + .floating-label,
.floating-textarea:not(:placeholder-shown) + .floating-label {
    top: 8px;
}

/* Autofill styling */
.floating-input:-webkit-autofill,
.floating-input:-webkit-autofill:hover,
.floating-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.1) inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Submit Button Enhancement */
#contact .pbmit-btn-global {
    width: 100%;
    height: 54px;
    margin-top: 10px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #e5c466 0%, #f5f5dc 100%) !important;
    color: #000 !important;
    border: none !important;
}

#contact .pbmit-btn-global:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 196, 102, 0.4);
    background: linear-gradient(135deg, #d4b454 0%, #ebe5d5 100%) !important;
}

/* Error/Success Message */
.message-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .form-floating-group {
        margin-bottom: 20px;
    }
    
    .floating-input {
        height: 58px !important;
        font-size: 16px !important;
        padding: 22px 18px 10px 18px !important;
    }
    
    .floating-textarea {
        min-height: 140px !important;
        padding-top: 26px !important;
    }
    
    .floating-label {
        font-size: 16px !important;
        top: 18px !important;
        left: 18px !important;
    }
    
    .floating-input:focus + .floating-label,
    .floating-input:not(:placeholder-shown) + .floating-label {
        font-size: 12px !important;
        top: 8px !important;
    }
    
    .floating-textarea + .floating-label {
        top: 22px !important;
    }
    
    .floating-textarea:focus + .floating-label,
    .floating-textarea:not(:placeholder-shown) + .floating-label {
        top: 8px !important;
    }
    
    #contact .pbmit-btn-global {
        height: 58px !important;
        font-size: 15px !important;
    }
    
    #contact .pbmit-button-text {
        font-size: 10px !important;
    }
    
    /* MOBILE FORM CONTAINER WIDTH FIX */
    /* Override Bootstrap col-md-10 col-lg-8 restrictions on mobile */
    #contact .row.g-0 > .col-md-10.col-lg-8 {
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding: 0 5px !important; /* Maximum width - minimal padding */
    }
    
    /* Remove card visual styling and maximize width */
    .contact-form-card {
        margin: 0 !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    /* Ensure form inputs use full available width */
    #contact .contact-form .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    #contact .contact-form .row > [class*="col-"] {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
}
