*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: "Open Sans", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background:
        radial-gradient(circle at top right, rgba(124, 92, 255, 0.12) 0%, transparent 30%),
        radial-gradient(circle at left, rgba(154, 124, 255, 0.08) 0%, transparent 22%),
        #2f3338;
    color: #f4f6f8;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px;
}

/* Hero */
.hero-card {
    background: #3a4046;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-top {
    text-align: center;
    padding: 22px 20px 18px;
    background:
        linear-gradient(90deg, rgba(124, 92, 255, 0.10) 0%, rgba(154, 124, 255, 0.06) 100%),
        #363c42;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-logo {
    max-width: 260px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.contact-hero-banner {
    position: relative;
    min-height: 280px;
    background:
        linear-gradient(180deg, rgba(47, 51, 56, 0.14) 0%, rgba(47, 51, 56, 0.68) 100%),
        linear-gradient(120deg, rgba(124, 92, 255, 0.08) 0%, rgba(154, 124, 255, 0.04) 100%),
        url('/images/system-3699542_1920.jpg') no-repeat center center;
    background-size: cover;
}

.hero-overlay {
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 32px;
}

.hero-content {
    max-width: 640px;
    padding: 30px 32px 26px;
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(66, 71, 79, 0.88) 0%, rgba(49, 54, 61, 0.92) 100%);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-content::before {
    content: "SUPPORT";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 16px;
    left: 18px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #efeaff;
    background: linear-gradient(90deg, #7c5cff 0%, #9a7cff 100%);
    box-shadow: 0 6px 16px rgba(124, 92, 255, 0.28);
}

.hero-content::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 26px;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 18%, transparent 40%),
        radial-gradient(circle at top left, rgba(124, 92, 255, 0.14) 0%, transparent 34%);
}

.hero-content h1 {
    margin: 34px 0 12px;
    font-size: 3rem;
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.hero-content p {
    margin: 0;
    max-width: 540px;
    font-size: 1.08rem;
    line-height: 1.55;
    color: #d8dde4;
    position: relative;
    z-index: 1;
}

/* Main */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-section {
    background: #3a4046;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-head {
    margin-bottom: 22px;
}

.section-head h2 {
    margin: 0 0 8px;
    font-size: 2rem;
    line-height: 1.15;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.section-head h2::after {
    content: "";
    display: block;
    width: 78px;
    height: 4px;
    margin-top: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #7c5cff 0%, #9a7cff 100%);
}

.section-subtitle {
    display: block;
    color: #c6cdd3;
    font-size: 0.97rem;
    line-height: 1.45;
}

/* Contact card */
.contact-form-card {
    background: linear-gradient(180deg, #40464d 0%, #3b4147 100%);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.contact-form-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, #7c5cff 0%, #9a7cff 100%);
}

.contact-form {
    position: relative;
    z-index: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f4f6f8;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    color: #ffffff;
    font: inherit;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #b8c1c9;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(124, 92, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.12);
    background: rgba(255,255,255,0.08);
}

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

.captcha-group {
    margin-bottom: 20px;
}

.captcha-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.captcha-question {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: #ffffff;
    font-weight: 700;
}

.error {
    color: #ff8ea1;
    font-size: 0.92rem;
    min-height: 18px;
}

.form-actions {
    margin-top: 4px;
}

.form-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    border: none;
    border-radius: 14px;
    padding: 12px 18px;
    background: linear-gradient(90deg, #7c5cff 0%, #9a7cff 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    box-shadow: 0 8px 18px rgba(124, 92, 255, 0.20);
}

.form-actions button:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 12px 24px rgba(124, 92, 255, 0.28);
}

/* Footer */
.footer {
    margin-top: 24px;
    background: #3a4046;
    color: #ccd3d8;
    padding: 18px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(17, 20, 26, 0.72);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.overlay.show {
    display: flex;
}

.overlay-content {
    width: 100%;
    max-width: 520px;
    padding: 24px;
    border-radius: 22px;
    position: relative;
    text-align: left;
    color: #ffffff;
    background: linear-gradient(180deg, #40464d 0%, #3b4147 100%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 40px rgba(0,0,0,0.28);
}

.overlay-success {
    box-shadow:
        0 20px 40px rgba(0,0,0,0.28),
        0 0 0 1px rgba(62, 204, 122, 0.18);
}

.overlay-error {
    box-shadow:
        0 20px 40px rgba(0,0,0,0.28),
        0 0 0 1px rgba(255, 105, 135, 0.18);
}

.overlay-header {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.overlay-body {
    font-size: 0.98rem;
    line-height: 1.6;
    color: #d6dce2;
}

.overlay-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.overlay-close:hover {
    background: rgba(255,255,255,0.14);
    transform: scale(1.04);
}

/* Responsive */
@media (max-width: 768px) {
    .page-wrap {
        padding: 12px;
    }

    .hero-top {
        padding: 18px 16px 12px;
    }

    .contact-hero-banner,
    .hero-overlay {
        min-height: 240px;
    }

    .hero-overlay {
        padding: 18px;
        align-items: flex-end;
    }

    .hero-content {
        padding: 26px 22px 22px;
        border-radius: 22px;
    }

    .hero-content::before {
        top: 14px;
        left: 14px;
        height: 26px;
        padding: 0 10px;
        font-size: 0.68rem;
    }

    .hero-content h1 {
        margin-top: 34px;
        font-size: 2.1rem;
    }

    .hero-content p {
        font-size: 0.98rem;
    }

    .contact-section,
    .contact-form-card,
    .footer,
    .hero-card {
        border-radius: 16px;
    }
}

@media (max-width: 520px) {
    .hero-content h1 {
        font-size: 1.7rem;
    }

    .hero-content p {
        font-size: 0.92rem;
    }

    .contact-form-card {
        padding: 18px;
    }

    .form-group input,
    .form-group textarea {
        padding: 13px 14px;
    }
}