/* ===================================================== */
/*  MediNexa — Coming Soon Page                          */
/* ===================================================== */

/* ── Reset & Variables ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --clr-primary:      #2A6671;
    --clr-primary-dark:  #1E4F58;
    --clr-accent:       #A3D9CF;
    --clr-accent-light: #DAEEF2;
    --clr-bg:           #0B1A1E;
    --clr-bg-card:      rgba(42, 102, 113, 0.08);
    --clr-text:         #E8F4F6;
    --clr-text-muted:   rgba(218, 238, 242, 0.6);
    --font-body:        'Outfit', sans-serif;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--clr-bg);
    color: var(--clr-text);
    min-height: 100vh;
    overflow-x: hidden;
}


/* ── Layout ── */
.cs-page {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 3rem 1.5rem;
    text-align: center;
}


/* ── Particle Canvas (background) ── */
.cs-particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}


/* ── Gradient Orbs (ambient decoration) ── */
.cs-page::before,
.cs-page::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.cs-page::before {
    width: 600px; height: 600px;
    top: -200px; left: -200px;
    background: radial-gradient(circle, rgba(42, 102, 113, 0.25), transparent 70%);
}

.cs-page::after {
    width: 500px; height: 500px;
    bottom: -150px; right: -150px;
    background: radial-gradient(circle, rgba(163, 217, 207, 0.15), transparent 70%);
}


/* ── Content Stack ── */
.cs-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}


/* ── Logo ── */
.cs-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

.cs-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
    box-shadow: 0 4px 20px rgba(42, 102, 113, 0.35);
}

.cs-logo-icon svg {
    color: var(--clr-accent-light);
}

.cs-logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--clr-text);
    letter-spacing: -0.02em;
}


/* ── Badge ── */
.cs-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--clr-accent);
    border: 1px solid rgba(163, 217, 207, 0.25);
    border-radius: 100px;
    background: rgba(163, 217, 207, 0.06);
}


/* ── Heading ── */
.cs-heading {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--clr-text) 30%, var(--clr-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ── Description ── */
.cs-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--clr-text-muted);
    max-width: 520px;
}


/* ── Divider ── */
.cs-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--clr-accent), transparent);
    border: none;
    opacity: 0.5;
}


/* ── Signup Form ── */
.cs-signup {
    width: 100%;
    max-width: 440px;
}

.cs-signup p {
    margin: 0;
}

.cs-signup-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--clr-text-muted);
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.cs-form-row {
    display: flex;
    gap: 0.5rem;
}

.cs-form-row .wpcf7-form-control-wrap {
    flex: 1;
}

.cs-form-row input[type="email"],
.cs-form-row input.wpcf7-form-control {
    width: 100%;
    padding: 0.85rem 1.2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--clr-text);
    background: rgba(42, 102, 113, 0.12);
    border: 1px solid rgba(163, 217, 207, 0.2);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cs-form-row input[type="email"]:focus,
.cs-form-row input.wpcf7-form-control:focus {
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px rgba(163, 217, 207, 0.15);
}

.cs-form-row input[type="email"]::placeholder {
    color: rgba(218, 238, 242, 0.35);
}

.cs-form-row input[type="submit"],
.cs-form-row .wpcf7-submit {
    padding: 0.85rem 1.8rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--clr-bg);
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-primary));
    border: none;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cs-form-row input[type="submit"]:hover,
.cs-form-row .wpcf7-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(42, 102, 113, 0.4);
}

/* CF7 response messages */
.wpcf7-response-output {
    margin-top: 0.75rem !important;
    padding: 0.6rem 1rem !important;
    border-radius: 10px !important;
    font-size: 0.85rem !important;
    border: 1px solid rgba(163, 217, 207, 0.2) !important;
    color: var(--clr-accent) !important;
    background: rgba(163, 217, 207, 0.06) !important;
}


/* ── Footer ── */
.cs-footer {
    position: relative;
    z-index: 1;
    margin-top: 3rem;
    font-size: 0.8rem;
    color: var(--clr-text-muted);
    letter-spacing: 0.02em;
}


/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cs-content > * {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
}

.cs-content > *:nth-child(1) { animation-delay: 0.1s; }
.cs-content > *:nth-child(2) { animation-delay: 0.25s; }
.cs-content > *:nth-child(3) { animation-delay: 0.4s; }
.cs-content > *:nth-child(4) { animation-delay: 0.55s; }
.cs-content > *:nth-child(5) { animation-delay: 0.7s; }
.cs-content > *:nth-child(6) { animation-delay: 0.85s; }
.cs-content > *:nth-child(7) { animation-delay: 1.0s; }


/* ── Responsive ── */
@media (max-width: 560px) {
    .cs-form-row {
        flex-direction: column;
    }

    .cs-form-row input[type="submit"],
    .cs-form-row .wpcf7-submit {
        width: 100%;
    }

    .cs-logo-text {
        font-size: 1.4rem;
    }

    .cs-page::before {
        width: 350px; height: 350px;
    }
    .cs-page::after {
        width: 300px; height: 300px;
    }
}
