/* =========================================
   Contact Form Section
   ========================================= */

.contact-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Subtle decorative background pattern */
.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.04);
    pointer-events: none;
}

.contact-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.03);
    pointer-events: none;
}

.contact-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ---- Wrapper: Two-Column Layout ---- */
.contact-wrapper {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    max-width: 420px;
    color: #1a3353;
}

.contact-info-image-container {
    flex: 1;
}

.contact-info-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}

.contact-label {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.contact-label::before {
    content: '';
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}

.contact-title {
    font-size: 42px;
    line-height: 1.2;
    color: #1a3353;
    font-weight: 500;
    margin: 0 0 24px 0;
}

.contact-title .highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-description {
    font-size: 16px;
    line-height: 1.8;
    color: #5a6d81;
    margin-bottom: 48px;
}

/* Contact detail items */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(var(--primary-rgb), 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.contact-detail-item:hover .detail-icon {
    background: rgba(var(--primary-rgb), 0.22);
}

.detail-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: bold;
}

.detail-value {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.5;
}

.detail-value a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.detail-value a:hover {
    color: var(--primary-color);
}

/* ---- Right Column: Form ---- */
.contact-form-wrapper {
    flex: 1;
    max-width: 600px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 48px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Two-column rows */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    position: relative;
}

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

/* Input / select / textarea base */
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: #f7f9fa;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: #1a3353;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #9ab;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.06);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

/* Select styling */
.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a3353' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 44px;
    cursor: pointer;
}

.contact-form select option {
    background: #ffffff;
    color: #1a3353;
}

/* Textarea */
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit button */
.form-submit {
    margin-top: 8px;
    text-align: center;
}

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    min-width: 200px;
}

.contact-submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-hover));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3);
}

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

.contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Form message */
.form-message {
    padding: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.4s ease;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

.form-message.show {
    padding: 14px 20px;
    opacity: 1;
    max-height: 80px;
    margin-top: 4px;
}

.form-message.success {
    background: rgba(72, 199, 142, 0.15);
    color: #48c78e;
    border: 1px solid rgba(72, 199, 142, 0.3);
}

.form-message.error {
    background: rgba(241, 70, 104, 0.15);
    color: #f14668;
    border: 1px solid rgba(241, 70, 104, 0.3);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .contact-section {
        padding: 70px 0;
    }

    .contact-wrapper {
        flex-direction: column;
        gap: 50px;
        justify-content: center;
        align-items: center;
    }

    .contact-info {
        max-width: 100%;
    }

    .contact-form-wrapper {
        max-width: 100%;
        padding: 30px;
    }

    .contact-title {
        font-size: 32px;
    }

    .contact-description {
        margin-bottom: 36px;
    }
}

@media (max-width: 576px) {
    .contact-section {
        padding: 50px 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 20px 15px;
        width: -webkit-fill-available;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 14px;
        padding: 12px 15px;
    }

    .contact-submit-btn {
        width: 100%;
        padding: 12px 30px;
        font-size: 13px;
    }

    .contact-title {
        font-size: 28px;
    }

    .contact-description {
        font-size: 15px;
    }
}