/* Contact Page Styles */
.contact-section {
    min-height: 60vh;
}

.contact-section .card {
    border: none;
}

.contact-section .btn-primary {
    background-color: #F36D21;
    border-color: #F36D21;
    padding: 14px 32px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(243, 109, 33, 0.25);
    transition: all 0.3s ease;
}

.contact-section .btn-primary:hover {
    background-color: #e05a0c;
    border-color: #e05a0c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 109, 33, 0.35);
}

.contact-section .btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(243, 109, 33, 0.5);
}

.contact-section .card-title i {
    margin-right: 0.5rem;
}

/* Required Field Indicator */
.required {
    color: #dc3545;
    font-weight: bold;
    margin-left: 2px;
}

/* Loading Overlay */
.form-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 0.375rem;
}

.form-loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Honeypot Field (hidden from users, visible to bots) */
.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Disabled Subproduct Styling */
.subproduct-disabled:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Enhanced Alert Styles */
.alert {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert .fa-2x {
    font-size: 2rem;
}

.alert strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

/* Form Styles */
.contact-section .form-control:focus,
.contact-section .form-control:focus-visible {
    border-color: #F36D21;
    box-shadow: 0 0 0 0.2rem rgba(243, 109, 33, 0.25);
    outline: 2px solid #F36D21;
    outline-offset: 2px;
}

/* Better focus for accessibility */
.contact-section button:focus-visible,
.contact-section a:focus-visible,
.contact-section select:focus-visible {
    outline: 2px solid #F36D21;
    outline-offset: 2px;
}

.contact-section select.form-control {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
    border: 1px solid #ced4da !important;
    border-radius: 0.25rem;
}

.contact-section select.form-control:focus {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23F36D21' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    border-color: #F36D21 !important;
}

/* Captcha Styles */
#captcha-question {
    background-color: #f8f9fa;
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    min-width: 120px;
    display: inline-block;
    text-align: center;
    font-size: 16px;
}

#refresh-captcha {
    padding: 8px 12px;
}

#refresh-captcha:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Mobile Input */
input[type="tel"] {
    letter-spacing: 1px;
}

/* Validation Feedback */
.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
}

/* Card Icons Colors */
.text-primary-orange {
    color: #F36D21;
}

.text-primary-blue {
    color: #0056b3;
}

/* Responsive Adjustments */
/* Tablet - Make form single column */
@media (max-width: 992px) {
    .contact-section .row > .col-md-6 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
}

@media (max-width: 768px) {
    .contact-section .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .contact-section .btn-primary {
        width: 100%;
        padding: 12px 28px;
    }
    
    .alert {
        font-size: 0.9rem;
    }
    
    .alert .fa-2x {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-section .btn-primary {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    
    .form-loading-overlay .spinner-border {
        width: 2.5rem;
        height: 2.5rem;
    }
}