/* Contact page – layout and design */

.contact-page-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

main.contact-block {
    width: 100%;
    background-color: #fff;
}
@media (min-width: 1200px) {
    .contact-page-wrap { padding: 0; }
}
@media (min-width: 1400px) {
    .contact-page-wrap { padding: 0; }
    .contact-hero {
        height: 955px;
        padding-bottom: 0;
        border-radius: 0 0 20px 20px;
    }
}

.contact-hero {
    height: 0;
    padding-bottom: 65.5%;
    background: url('../images/contact-home.png') center/cover no-repeat;
    border-radius: 0 0 20px 20px;
}
.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 100%);
    border-radius: inherit;
}
.contact-hero-content {
    width: 90%;
    max-width: 658px;
    z-index: 1;
}
.contact-hero-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: clamp(36px, 5.2vw, 72px);
    line-height: 1;
    letter-spacing: 0;
}
.contact-hero-subtitle {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(16px, 1.6vw, 22px);
    line-height: 30.6px;
    letter-spacing: 0;
    color: #F6F5F5;
}

.contact-card {
    display: flex;
    flex-wrap: wrap;
    width: 86%;
    max-width: 1190px;
    margin-left: auto;
    margin-right: auto;
    background: #1989FB;
    min-height: 260px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.contact-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url(../images/shape.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 706px 572px;
    z-index: 0;
}

@media (max-width: 991px) {
    .contact-card-bg {
        background-size: 165px 165px;
    }
}


.contact-card-info {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 3.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (min-width: 992px) {
    .contact-card-info {
        padding: 65px 0px 130px 130px;
    }
}

.contact-card-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 44px;
    line-height: 60px;
    letter-spacing: 0;
    color: #fff;
    margin: 0;
}

.contact-card-icon {
    width: 44px;
    height: 44px;
}
.contact-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.contact-card-address,
.contact-card-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 1.6vw, 24px);
    line-height: 1.4;
    letter-spacing: 0;
    color: #fff;
    text-decoration: none;
}

@media (min-width: 768px) {
    .contact-card {
        max-width: 1130px;
    }
}

@media (max-width: 768px) {
    .contact-hero { 
        border-radius: 0 0 20px 20px; 
        min-height: 480px;
        padding: 0 27px;
    }
    .contact-hero-title {
        font-size: 27px;
        line-height: 32px;
    }
    .contact-hero-subtitle {
        font-size: 16px;
        line-height: 18px;
        margin-bottom: 25px;
    }
    .contact-card-heading {
        font-size: 22px;
        line-height: 27px;
        max-width: 90%;
    }
    .contact-card-info {
        padding: 50px 20px;
    }
    .contact-card-info div {
        margin-top: 20px !important;
    }

    .contact-card-address,
    .contact-card-link {
        font-size: 16px;
    }
    .contact-card-icon {
        width: 20px;
        height: 20px;
    }
    .contact-card {
        border-radius: 32px;
    }
}

.contact-card-link:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 991px) {
    .contact-card { margin-top: 0; }
}

@media (max-width: 480px) {
    .contact-page-wrap { padding: 0; }
}

/* Contact Form Styles */
.contact-form-section {
    padding: 80px 0 75px 0;
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-form-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 48px;
    line-height: 48px;
    text-align: center;
    margin-bottom: 48px;
    color: #0D0100;
}

.text-blue {
    color: #1989FB;
}

.contact-form {
    background: #fff;
    padding: 40px 40px 22px 40px;
    border-radius: 12px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    flex: 1;
    margin-bottom: 0;
}

.contact-form .form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    color: #6B7280;
    line-height: 20px;
}

.form-group.full-width {
    width: 100%;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    line-height: 18px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #1989FB;
    box-shadow: 0 0 0 3px rgba(25, 137, 251, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #0A0A0A80;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 16px;
}

.form-select {
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 40px;
}

.form-select:invalid {
    color: #999;
}

.form-select option {
    color: #333;
}

.form-select option:first-child {
    color: #0A0A0A80;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 16px;
}

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

.submit-btn {
    background: linear-gradient(135deg, #1989FB 0%, #0d7fe8 100%);
    color: #FFFFFF;
    border: none;
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 24px;
    text-align: center;
    width: 100%;
    display: block;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #0d7fe8 0%, #0066cc 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(25, 137, 251, 0.3);
}

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

/* Success Message Styles */
.contact-success-message {
    border: 1px solid #05740C;
    background-color: #fff;
    color: #0D0100;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    width: fit-content;
    margin: 0 auto;
    padding: 4px 12px;
}

/* Error text styles for inline validation */
.error-text {
    color: #ef4444;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    margin-top: 4px;
    display: block;
    font-weight: 400;
}

/* Error state for form inputs */
.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #ef4444;
}

/* Responsive styles for contact form */
@media (max-width: 768px) {
    .contact-form-section {
        padding: 60px 0;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 12px 30px;
        font-size: 14px;
    }

    .contact-form-heading {
        font-size: 28px;
        line-height: 28px;
        margin-bottom: 36px;
    }
}

@media (max-width: 480px) {
    .contact-form-section {
        padding: 40px 0;
    }
    
    .contact-form-container {
        padding: 0 15px;
    }
    
    .contact-form {
        padding: 0 17px 9px 17px;
    }
}
