/* Contact section (home) */
/* ===================================
   DAITECH CONTACT SECTION
   Scoped CSS: no header/footer conflicts
=================================== */

.dt-contact,
.dt-contact * {
    box-sizing: border-box;
}

.dt-contact {
    --dc-blue: #168bff;
    --dc-cyan: #00d4e8;
    --dc-bg: #080f1d;
    --dc-panel: #101b2d;
    --dc-text: #f5f8ff;
    --dc-muted: #aab8cb;
    --dc-border: rgba(255,255,255,.09);

    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    padding: 85px 22px;
    direction: rtl;
    font-family: "B Nazanin", Tahoma, sans-serif;
    color: var(--dc-text);
    background:
        radial-gradient(ellipse at 0% 10%, rgba(22,139,255,.12), transparent 38%),
        radial-gradient(ellipse at 100% 85%, rgba(0,212,232,.08), transparent 35%),
        var(--dc-bg);
}

.dt-contact .dc-container {
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Section heading */

.dt-contact .dc-heading {
    max-width: 700px;
    margin: 0 auto 48px;
    text-align: center;
}

.dt-contact .dc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px;
    margin-bottom: 15px;
    border: 1px solid rgba(0,212,232,.25);
    border-radius: 50px;
    background: rgba(0,212,232,.06);
    color: var(--dc-cyan);
    font-size: 17px;
}

.dt-contact .dc-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dc-cyan);
    box-shadow: 0 0 12px rgba(0,212,232,.8);
}

.dt-contact .dc-heading h2 {
    margin: 0 0 14px;
    color: var(--dc-text);
    font-size: clamp(31px, 4vw, 44px);
    line-height: 1.5;
    font-weight: bold;
}

.dt-contact .dc-heading h2 span {
    color: var(--dc-blue);
}

.dt-contact .dc-heading p {
    margin: 0;
    color: var(--dc-muted);
    font-size: 19px;
    line-height: 1.9;
}

/* Main layout */

.dt-contact .dc-layout {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 26px;
    align-items: stretch;
}

/* Left information panel */

.dt-contact .dc-info-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 32px;
    border: 1px solid var(--dc-border);
    border-radius: 20px;
    background: linear-gradient(145deg, #12243a, #0d1728);
}

.dt-contact .dc-info-panel::before {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    left: -95px;
    bottom: -100px;
    border: 1px solid rgba(22,139,255,.18);
    border-radius: 50%;
    box-shadow:
        0 0 0 25px rgba(22,139,255,.025),
        0 0 0 50px rgba(22,139,255,.02);
    pointer-events: none;
}

.dt-contact .dc-info-content {
    position: relative;
    z-index: 1;
}

.dt-contact .dc-info-panel h3 {
    margin: 0 0 12px;
    font-size: 28px;
    color: var(--dc-text);
    line-height: 1.6;
}

.dt-contact .dc-info-panel > .dc-info-content > p {
    margin: 0 0 28px;
    color: var(--dc-muted);
    font-size: 18px;
    line-height: 1.9;
}

/* Contact detail rows */

.dt-contact .dc-details {
    display: grid;
    gap: 14px;
}

.dt-contact .dc-detail {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 15px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 13px;
    background: rgba(255,255,255,.025);
    transition: border-color .25s ease, background .25s ease;
}

.dt-contact .dc-detail:hover {
    border-color: rgba(22,139,255,.4);
    background: rgba(22,139,255,.05);
}

.dt-contact .dc-icon {
    display: grid;
    place-items: center;
    flex: 0 0 47px;
    width: 47px;
    height: 47px;
    border-radius: 12px;
    color: var(--dc-cyan);
    background: rgba(22,139,255,.12);
}

.dt-contact .dc-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dt-contact .dc-detail-text {
    min-width: 0;
}

.dt-contact .dc-detail-text small {
    display: block;
    margin-bottom: 4px;
    color: var(--dc-muted);
    font-size: 15px;
}

.dt-contact .dc-detail-text a,
.dt-contact .dc-detail-text span {
    display: block;
    overflow-wrap: anywhere;
    color: var(--dc-text);
    font-size: 18px;
    line-height: 1.7;
    text-decoration: none;
    transition: color .2s ease;
}

.dt-contact .dc-detail-text a:hover {
    color: var(--dc-cyan);
}

/* WhatsApp action */

.dt-contact .dc-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: 100%;
    margin-top: 25px;
    padding: 14px 18px;
    border: 1px solid rgba(37,211,102,.35);
    border-radius: 12px;
    color: #eafff0;
    background: rgba(37,211,102,.09);
    text-decoration: none;
    font-size: 19px;
    font-weight: bold;
    transition: transform .25s ease, background .25s ease;
}

.dt-contact .dc-whatsapp:hover {
    transform: translateY(-2px);
    color: #fff;
    background: rgba(37,211,102,.18);
}

.dt-contact .dc-whatsapp svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Right form panel */

.dt-contact .dc-form-panel {
    min-width: 0;
    padding: 34px;
    border: 1px solid var(--dc-border);
    border-radius: 20px;
    background: rgba(16,27,45,.9);
    box-shadow: 0 20px 60px rgba(0,0,0,.12);
}

.dt-contact .dc-form-title {
    margin-bottom: 27px;
}

.dt-contact .dc-form-title h3 {
    margin: 0 0 8px;
    color: var(--dc-text);
    font-size: 28px;
    line-height: 1.5;
}

.dt-contact .dc-form-title p {
    margin: 0;
    color: var(--dc-muted);
    font-size: 17px;
    line-height: 1.8;
}

/* Form fields */

.dt-contact .dc-form {
    display: grid;
    gap: 19px;
}

.dt-contact .dc-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 17px;
}

.dt-contact .dc-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.dt-contact .dc-field-full {
    grid-column: 1 / -1;
}

.dt-contact .dc-field label {
    color: #e8eef8;
    font-size: 17px;
    font-weight: bold;
}

.dt-contact .dc-field input,
.dt-contact .dc-field select,
.dt-contact .dc-field textarea {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 13px 15px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    outline: none;
    color: var(--dc-text);
    background: #0a1423;
    font-family: inherit;
    font-size: 17px;
    line-height: 1.7;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.dt-contact .dc-field input,
.dt-contact .dc-field select {
    min-height: 51px;
}

.dt-contact .dc-field input::placeholder,
.dt-contact .dc-field textarea::placeholder {
    color: #77879d;
    opacity: 1;
}

.dt-contact .dc-field select {
    cursor: pointer;
}

.dt-contact .dc-field select option {
    color: #fff;
    background: #101b2d;
}

.dt-contact .dc-field textarea {
    min-height: 135px;
    resize: vertical;
}

.dt-contact .dc-field input:focus,
.dt-contact .dc-field select:focus,
.dt-contact .dc-field textarea:focus {
    border-color: var(--dc-blue);
    box-shadow: 0 0 0 3px rgba(22,139,255,.12);
}

.dt-contact .dc-field input:focus-visible,
.dt-contact .dc-field select:focus-visible,
.dt-contact .dc-field textarea:focus-visible {
    outline: 1px solid var(--dc-blue);
    outline-offset: 2px;
}

/* Submit button */

.dt-contact .dc-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    padding: 13px 20px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(110deg, #087cf0, #00bcd4);
    font-family: inherit;
    font-size: 19px;
    font-weight: bold;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.dt-contact .dc-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 25px rgba(0,140,255,.22);
    filter: brightness(1.08);
}

.dt-contact .dc-submit svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dt-contact .dc-note {
    margin: 0;
    color: var(--dc-muted);
    text-align: center;
    font-size: 15px;
    line-height: 1.8;
}

.dt-contact .dc-status {
    display: none;
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.dt-contact .dc-status.dc-status-visible {
    display: block;
}

.dt-contact .dc-status.dc-status-error {
    color: #ffd5d5;
    border: 1px solid rgba(255,100,100,.25);
    background: rgba(255,80,80,.08);
}

.dt-contact .dc-status.dc-status-success {
    color: #c8ffe0;
    border: 1px solid rgba(37,211,102,.25);
    background: rgba(37,211,102,.08);
}

/* Responsive */

@media (max-width: 900px) {
    .dt-contact {
        padding: 65px 20px;
    }

    .dt-contact .dc-layout {
        grid-template-columns: 1fr;
    }

    .dt-contact .dc-info-panel {
        padding: 28px;
    }

    .dt-contact .dc-details {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .dt-contact .dc-whatsapp {
        max-width: 360px;
    }
}

@media (max-width: 560px) {
    .dt-contact {
        padding: 48px 15px;
    }

    .dt-contact .dc-heading {
        margin-bottom: 30px;
    }

    .dt-contact .dc-heading p {
        font-size: 18px;
    }

    .dt-contact .dc-layout {
        gap: 18px;
    }

    .dt-contact .dc-info-panel,
    .dt-contact .dc-form-panel {
        padding: 21px;
        border-radius: 15px;
    }

    .dt-contact .dc-details {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .dt-contact .dc-fields {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .dt-contact .dc-field-full {
        grid-column: auto;
    }

    .dt-contact .dc-info-panel h3,
    .dt-contact .dc-form-title h3 {
        font-size: 25px;
    }

    .dt-contact .dc-detail {
        padding: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dt-contact *,
    .dt-contact *::before,
    .dt-contact *::after {
        transition-duration: .01ms !important;
    }
}
