/* ===========================
   Contact Us Page
   =========================== */

/* ===========================
   Entrance Animation
   =========================== */
@keyframes contactSlideUp {
    from {
        opacity: 0;
        transform: translateY(80px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pd-form-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
}

.contact-page--animate .contact-hero {
    animation: contactSlideUp 0.8s ease-out both;
}

.contact-page--animate .contact-info {
    opacity: 0;
    animation: contactSlideUp 0.8s 0.15s ease-out both;
}

.contact-page--animate ~ .site-footer {
    opacity: 0;
    animation: contactSlideUp 0.8s 0.3s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
    .contact-page--animate .contact-hero,
    .contact-page--animate .contact-info,
    .contact-page--animate ~ .site-footer {
        animation: none;
        opacity: 1;
    }
}

/* ===========================
   Background Glow Effects
   =========================== */
.contact-bg-glows {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.contact-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    will-change: transform;
}

.contact-bg-glow--1 {
    width: 868px;
    height: 626px;
    background: radial-gradient(circle, rgba(var(--color-secondary-rgb), 0.25) 0%, transparent 70%);
    top: -50px;
    left: -150px;
    transform: rotate(90deg);
}

.contact-bg-glow--2 {
    width: 514px;
    height: 371px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.2) 0%, transparent 70%);
    top: 310px;
    right: -50px;
    transform: rotate(100deg);
}

.contact-bg-glow--3 {
    width: 1367px;
    height: 706px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.08) 0%, transparent 70%);
    top: 900px;
    left: 37px;
}

.contact-bg-glow--4 {
    width: 1367px;
    height: 706px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.08) 0%, transparent 70%);
    top: 1400px;
    right: -200px;
}

/* ===========================
   Shared Gradient Border (form fields, cards, button)
   =========================== */
.contact-form-field,
.contact-info-card,
.contact-form-btn {
    position: relative;
}

    .contact-form-field::before,
    .contact-info-card::before,
    .contact-form-btn::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 1px;
        background: linear-gradient(184deg, var(--color-primary) 0.91%, var(--color-primary-light) 82.1%);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        pointer-events: none;
        z-index: 0;
    }

    .contact-form-btn::before {
        padding: 2px;
    }

    .contact-form-field > *,
    .contact-info-card > *,
    .contact-form-btn > * {
        position: relative;
        z-index: 1;
    }

/* ===========================
   1. Hero Section
   =========================== */
.contact-hero {
    position: relative;
    z-index: 1;
    padding-top: 200px;
    padding-bottom: 0;
}

.contact-hero-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
    max-width: 1300px;
    margin: 0 auto;
}

/* Left column */
.contact-hero-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-height: 450px;
}

.contact-hero-title {
    font-weight: 900;
    font-size: 86px;
    line-height: 1.05;
    letter-spacing: -0.43px;
    text-transform: uppercase;
    background: linear-gradient(71deg, #fff 3.96%, var(--color-secondary) 71.39%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    padding-bottom: 4px;
}

.contact-hero-tagline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-hero-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.contact-hero-desc {
    font-weight: 400;
    font-size: 20px;
    line-height: 30px;
    color: #fff;
    opacity: 0.8;
    max-width: 356px;
    text-transform: capitalize;
    margin: 0;
}

/* Right column — form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 600px;
    flex-shrink: 1;
    min-width: 0;
}

.contact-form-field:has(.phone-input-wrapper) {
    overflow: visible;
}

/* Form field wrapper — holds ::before gradient border */
.contact-form-field {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    transition: background 0.2s;
}

    .contact-form-field:focus-within {
        background: rgba(255, 255, 255, 0.1);
    }

.contact-form-input,
.contact-form-select,
.contact-form-textarea {
    width: 100%;
    height: 45px;
    background: transparent;
    border: none;
    padding: 11px 15px;
    font-size: 12px;
    color: #fff;
    outline: none;
}

    .contact-form-input::placeholder,
    .contact-form-textarea::placeholder {
        color: #fff;
        font-size: 12px;
    }

/* Select dropdown */
.contact-form-select {
    appearance: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M1 1l7 7 7-7' stroke='%2345DDE6' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 16px 10px;
    padding-right: 44px;
    cursor: pointer;
}

    .contact-form-select option {
        background: #0d1035;
        color: #fff;
    }

/* Email + Phone row */
.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

    .contact-form-row .contact-form-field {
        border-radius: 5px;
    }

/* Textarea wrapper */
.contact-form-field--textarea {
    border-radius: 5px;
}

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

/* Send button */
.contact-form-btn {
    width: 100%;
    height: 60px;
    border: none;
    border-radius: 32px;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    text-transform: capitalize;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

    .contact-form-btn:hover {
        background: linear-gradient(194deg, var(--color-primary) 0.91%, var(--color-primary-light) 82.1%);
        color: #000;
    }

/* ===========================
   2. Contact Info Section
   =========================== */
.contact-info {
    position: relative;
    z-index: 1;
    padding-top: 60px;
}

.contact-info-inner {
    max-width: 1300px;
    margin: 0 auto;
}

.contact-info-title {
    font-weight: 700;
    font-size: 40px;
    line-height: 1.4;
    background: linear-gradient(187deg, var(--color-primary) 0.91%, var(--color-primary-light) 82.1%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
}

.contact-info-desc {
    font-weight: 400;
    font-size: 20px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.5);
    max-width: 555px;
    margin-top: 24px;
    margin-bottom: 0;
}

/* Cards row */
.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 0 25px;
    margin-top: 60px;
}

.contact-info-card {
    min-height: 320px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    justify-items: start;
    padding: 35px 47px;
    gap: 26px;
    overflow: hidden;
}

.contact-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.contact-card-icon {
    width: 60px;
    height: 60px;
}

.contact-card-title {
    font-weight: 700;
    font-size: 24px;
    line-height: 1.4;
    color: #fff;
    margin: 0;
}

.contact-card-desc {
    font-weight: 400;
    font-size: 20px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.contact-card-value {
    font-weight: 400;
    font-size: 20px;
    line-height: 1.4;
    color: var(--color-secondary);
    margin: 0;
    align-self: start;
    text-decoration: none;
}

    .contact-card-value:hover {
        color: var(--color-secondary);
        opacity: 0.8;
    }

/* ===========================
   Responsive — 1200px
   =========================== */
@media (max-width: 1200px) {
    .contact-hero-inner {
        gap: 40px;
    }

    .contact-form {
        width: 50%;
        flex-shrink: 1;
    }

    .contact-hero-title {
        font-size: 64px;
        line-height: 68px;
    }

    .contact-info-cards {
        gap: 20px;
    }
}

/* ===========================
   Responsive — 991px
   =========================== */
@media (max-width: 991px) {
    .contact-hero {
        padding-top: 160px;
    }

    .contact-hero-inner {
        flex-direction: column;
        gap: 40px;
    }

    .contact-hero-left {
        width: 100%;
        min-height: auto;
        gap: 30px;
    }

    .contact-form {
        width: 100%;
    }

    .contact-hero-title {
        font-size: 52px;
        line-height: 56px;
    }

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

    .contact-info-desc {
        font-size: 18px;
    }

    .contact-info-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-info-card {
        min-height: 280px;
    }
}

/* ===========================
   Responsive — 768px
   =========================== */
@media (max-width: 768px) {
    .contact-hero {
        padding-top: 140px;
    }

    .contact-hero-title {
        font-size: 40px;
        line-height: 44px;
    }

    .contact-hero-desc {
        font-size: 16px;
        line-height: 24px;
    }

    .contact-hero-icon {
        width: 48px;
        height: 48px;
    }

    .contact-info-cards {
        grid-template-columns: 1fr;
    }

    .contact-info-card {
        min-height: auto;
        padding: 30px 32px;
    }

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

    .contact-card-desc,
    .contact-card-value {
        font-size: 16px;
    }
}

/* ===========================
   Responsive — 576px
   =========================== */
@media (max-width: 576px) {
    .contact-hero {
        padding-top: 130px;
    }

    .contact-hero-title {
        font-size: 32px;
        line-height: 36px;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form-btn {
        height: 50px;
    }

    .contact-info-title {
        font-size: 24px;
    }

    .contact-info-desc {
        font-size: 16px;
    }
}

/* ===========================
   Responsive — 400px
   =========================== */
@media (max-width: 400px) {
    .contact-hero-title {
        font-size: 28px;
        line-height: 32px;
    }

    .contact-hero-desc {
        font-size: 14px;
    }

    .contact-info-card {
        padding: 24px 20px;
    }
}

/* ===========================
   RTL Support
   =========================== */
[dir="rtl"] .contact-hero-title {
    line-height: 1.2;
}

[dir="rtl"] .contact-hero-tagline {
    flex-direction: row;
}

[dir="rtl"] .contact-hero-desc {
    text-align: right;
}

[dir="rtl"] .contact-form-select {
    background-position: left 16px center;
    padding-right: 15px;
    padding-left: 44px;
}

[dir="rtl"] .contact-form-input,
[dir="rtl"] .contact-form-select,
[dir="rtl"] .contact-form-textarea {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .contact-bg-glow--2 {
    right: auto;
    left: -50px;
}

[dir="rtl"] .contact-bg-glow--4 {
    right: auto;
    left: -200px;
}

[dir="rtl"] .contact-info-card:last-child .contact-card-value{                                                                                                                       
    direction: ltr;                                                                                                                                                   
    display: inline-block;                                                                                                                                          
} 

@media (max-width: 991px) {
    [dir="rtl"] .contact-hero-inner {
        flex-direction: column;
    }
}
