/* Contact Us Page Styles */

/* Hero Section */
.contact-hero {
    background: linear-gradient(180deg, rgb(211 47 47) 0%, rgb(101 0 18 / 90%) 100%);
    padding: 50px 0;
    text-align: center;
    color: white;
}

.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Info Grid */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Contact Info Cards */
.contact-info-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) {
    .contact-info-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 20px rgba(211, 47, 47, 0.2);
    }
    
    .contact-info-card a:hover {
        color: #b71c1c;
    }
    
    .form-submit:hover {
        background-color: #b71c1c;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
    }
    
    .map-wrapper:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
    }
}

.contact-info-card i {
    font-size: 3rem;
    color: #d32f2f;
    margin-bottom: 20px;
}

.contact-info-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #333;
}

.contact-info-card a {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    display: inline-block;
    transition: color 0.3s ease;
}

.contact-info-card .phone-link {
    color: #333;
    text-decoration: none;
}

.contact-info-card .email-link {
    color: #333;
    text-decoration: none;
}

.contact-info-card .detail-text {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

/* Form Section */
.form-section {
    background-color: #f5f5f5;
}

.form-container {
    max-width: 700px;
    margin: 40px auto 0;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d32f2f;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    padding: 15px;
    background-color: #d32f2f;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:active {
    transform: translateY(0);
}

.form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Success Icon Animation */
.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #28a745;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.success-icon svg {
    width: 16px;
    height: 16px;
    color: white;
}

.checkmark-path {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: checkmark-draw 0.5s ease forwards 0.2s;
}

@keyframes checkmark-draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* Button Loading State */
.form-submit.loading {
    background-color: #b71c1c;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-submit:disabled {
    opacity: 0.8;
}

/* Field Error State */
.form-group input.field-error,
.form-group select.field-error,
.form-group textarea.field-error {
    border-color: #dc3545;
    background-color: #fff8f8;
}

.form-group input.field-error:focus,
.form-group select.field-error:focus,
.form-group textarea.field-error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

/* Field Error Message */
.field-error-message {
    display: none;
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 8px;
    font-weight: 500;
}

.field-error-message.show {
    display: block;
}

/* Checkbox Group Styles - Fixed Layout */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    user-select: none;
    position: relative;
    padding: 8px 16px 8px 0;
}

.checkbox-label input[type="checkbox"] {
    /* Hide the default checkbox but keep it accessible */
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    background-color: #fafafa;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-label:hover .checkbox-custom {
    border-color: #d32f2f;
    background-color: #fff;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background-color: #d32f2f;
    border-color: #d32f2f;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:focus + .checkbox-custom {
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2);
}

/* Terms and Conditions Checkbox Styling */
.terms-group {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.terms-checkbox-label {
    align-items: flex-start;
    padding: 0;
}

.terms-checkbox-label .checkbox-custom {
    margin-top: 2px;
    flex-shrink: 0;
}

.terms-text {
    line-height: 1.5;
    font-weight: 400;
}

.terms-text a.terms-link {
    color: #d32f2f;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease, background-color 0.2s ease;
    padding: 2px 4px;
    border-radius: 3px;
}

.terms-text a.terms-link:hover {
    color: #fff;
    background-color: #d32f2f;
    text-decoration: none;
}

/* Terms checkbox error state */
.terms-group .checkbox-label.checkbox-error .checkbox-custom {
    border-color: #dc3545;
    background-color: #fff8f8;
}

/* reCAPTCHA Disclaimer Styling */
.recaptcha-disclaimer {
    margin-top: 20px;
    padding: 14px 18px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.recaptcha-disclaimer i {
    color: #6c757d;
    font-size: 0.9rem;
    margin-right: 6px;
}

.recaptcha-disclaimer p {
    display: inline;
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.6;
    color: #6c757d;
}

.recaptcha-disclaimer a {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.recaptcha-disclaimer a:hover {
    color: #b71c1c;
    text-decoration: underline;
}

/* Google Maps */
.map-wrapper {
    margin-top: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-wrapper iframe {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {

    .contact-hero h1 {
        font-size: 1.5rem;
    }
    
    .contat-hero p {
        font-size: .75rem;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .map-wrapper iframe {
        height: 350px;
    }
    
    .checkbox-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .terms-text {
        font-size: 0.9rem;
    }
}