
/* =========================================
   STEP 12: CONTACT SECTION
========================================= */

.r3s-contact-section {
    padding: 95px 0;
    background: var(--bg-primary);
    overflow: hidden;
}
/* HEADING */

.contact-heading {
    max-width: 750px;
    margin: 0 auto 45px;
}

.contact-heading h2 {
    margin: 12px 0;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: clamp(30px, 3.5vw, 43px);
    font-weight: 800;
    line-height: 1.25;
}

.contact-heading h2 span {
    display: block;
    color: var(--r3s-primary);
}

.contact-heading p {
    max-width: 620px;
    margin: 14px auto 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

/* MAIN WRAPPER */

.contact-wrapper {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);
}

/* LEFT PANEL */

.contact-info-panel {
    position: relative;
    overflow: hidden;
    padding: 45px 35px;
    background: #090909;
    color: #ffffff;
    isolation: isolate;
}

.contact-info-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        145deg,
        rgba(221, 3, 17, 0.14),
        transparent 55%
    );
}

.contact-panel-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ff626b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.contact-panel-eyebrow::before {
    content: "";
    width: 25px;
    height: 2px;
    background: #DD0311;
}

.contact-info-panel h3 {
    margin: 20px 0 15px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
}

.contact-info-panel h3 span {
    display: block;
    color: #DD0311;
}

.contact-panel-description {
    max-width: 390px;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    line-height: 1.9;
}

/* CONTACT DETAILS */

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.contact-detail-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 12px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-detail-item:hover {
    border-color: rgba(221, 3, 17, 0.6);
    background: rgba(221, 3, 17, 0.08);
    transform: translateX(4px);
}

.contact-detail-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(221, 3, 17, 0.16);
    color: #ff555f;
    font-size: 18px;
}

.contact-whatsapp-icon {
    color: #25D366;
    background: rgba(37, 211, 102, 0.12);
}

.contact-detail-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-detail-content small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

.contact-detail-content strong {
    overflow-wrap: anywhere;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.contact-detail-arrow {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    transition: transform 0.3s ease;
}

.contact-detail-item:hover .contact-detail-arrow {
    color: #ffffff;
    transform: translate(3px, -3px);
}

/* AVAILABILITY */

.contact-availability {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.availability-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.12);
}

.contact-panel-decoration {
    position: absolute;
    right: -40px;
    bottom: -60px;
    z-index: -1;
    color: rgba(255, 255, 255, 0.035);
    font-size: 220px;
}

/* RIGHT FORM PANEL */

.contact-form-panel {
    padding: 42px 38px;
    background: var(--card-bg);
}

.contact-form-heading {
    margin-bottom: 28px;
}

.contact-form-heading h3 {
    margin: 0 0 8px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 23px;
    font-weight: 800;
}

.contact-form-heading p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

/* FORM INPUTS */

.contact-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
}

.contact-label span {
    color: var(--r3s-primary);
}

.contact-input {
    min-height: 48px;
    padding: 11px 14px;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 7px;
    font-family: var(--font-body);
    font-size: 13px;
    box-shadow: none !important;
    transition: border-color 0.3s ease,
                background-color 0.3s ease;
}

.contact-input::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

.contact-input:focus {
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border-color: var(--r3s-primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(221, 3, 17, 0.08) !important;
}

.contact-input option {
    color: #111111;
    background: #ffffff;
}

.contact-textarea {
    min-height: 115px;
    resize: vertical;
}

/* SUBMIT BUTTON */

.contact-submit-btn {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 7px;
}

.contact-submit-btn i {
    transition: transform 0.3s ease;
}

.contact-submit-btn:hover i {
    transform: translateX(5px);
}

/* TABLET */

@media (max-width: 991px) {

    .r3s-contact-section {
        padding: 75px 0;
    }

    .contact-wrapper {
        grid-template-columns: 1fr 1.2fr;
    }

    .contact-info-panel {
        padding: 35px 23px;
    }

    .contact-form-panel {
        padding: 35px 25px;
    }

    .contact-info-panel h3 {
        font-size: 30px;
    }
}

/* MOBILE */

@media (max-width: 767px) {

    .r3s-contact-section {
        padding: 65px 0;
    }

    .contact-heading {
        margin-bottom: 30px;
    }

    .contact-heading h2 {
        font-size: 30px;
    }

    .contact-heading p {
        font-size: 13px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        border-radius: 10px;
    }

    .contact-info-panel {
        padding: 32px 22px;
    }

    .contact-info-panel h3 {
        font-size: 29px;
    }

    .contact-panel-description {
        margin-bottom: 25px;
        font-size: 12px;
    }

    .contact-form-panel {
        padding: 30px 20px;
    }

    .contact-form-heading h3 {
        font-size: 20px;
    }

    .contact-input {
        min-height: 46px;
        font-size: 13px;
    }

    .contact-textarea {
        min-height: 105px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .contact-detail-item,
    .contact-detail-arrow,
    .contact-submit-btn i {
        transition: none;
    }

    .contact-detail-item:hover {
        transform: none;
    }
}
