/* ============================================================
   Stumaka Tech - Public Registration Site
   ============================================================ */

:root {
    --brand: #06b6d4;
    --brand-dark: #0891b2;
    --brand-darker: #155e75;
    --ink: #1e293b;
    --ink-soft: #64748b;
    --bg: #f0f9fb;
    --card-shadow: 0 10px 40px rgba(8, 145, 178, .10);
}

* {
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    background: var(--bg);
    background-image:
        radial-gradient(circle at 15% 20%, rgba(6, 182, 212, .10), transparent 40%),
        radial-gradient(circle at 85% 10%, rgba(6, 182, 212, .08), transparent 35%),
        radial-gradient(circle at 90% 85%, rgba(8, 145, 178, .08), transparent 40%);
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* ---------- Header ---------- */
.site-header {
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(6, 182, 212, .15);
}

.site-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(8, 145, 178, .25);
}

.site-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: .5px;
    background: linear-gradient(120deg, var(--brand-darker), var(--brand));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-subtitle {
    font-size: .92rem;
    color: var(--ink-soft);
    font-weight: 500;
}

/* ---------- Registration card ---------- */
.reg-card {
    background: #fff;
    border: none;
    border-radius: 22px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.reg-card .card-hero {
    background: linear-gradient(120deg, var(--brand-darker) 0%, var(--brand-dark) 55%, var(--brand) 100%);
    color: #fff;
    padding: 1.75rem 1.5rem 1.5rem;
    text-align: center;
}

.reg-card .card-hero h2 {
    font-weight: 700;
    font-size: 1.35rem;
    margin-bottom: .25rem;
}

.reg-card .card-hero p {
    margin-bottom: 0;
    opacity: .9;
    font-size: .95rem;
}

.reg-card .card-body {
    padding: 1.75rem;
}

.form-label {
    font-weight: 600;
    font-size: .92rem;
    color: var(--ink);
}

.form-label .req {
    color: #e11d48;
}

.form-control,
.form-select {
    border-radius: 12px;
    padding: .7rem .95rem;
    border: 1.5px solid #e2e8f0;
    font-size: 1rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 .25rem rgba(6, 182, 212, .15);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #e11d48;
    background-image: none;
}

.invalid-feedback {
    font-size: .85rem;
    font-weight: 500;
}

/* ---------- Buttons ---------- */
.btn-submit {
    background: linear-gradient(120deg, var(--brand-dark), var(--brand));
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    padding: .85rem 1.5rem;
    border-radius: 14px;
    width: 100%;
    letter-spacing: .3px;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
    box-shadow: 0 8px 20px rgba(8, 145, 178, .35);
}

.btn-submit:hover,
.btn-submit:focus {
    color: #fff;
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(8, 145, 178, .42);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: .7;
    transform: none;
}

.btn-whatsapp {
    background: linear-gradient(120deg, #16a34a, #22c55e);
    border: none;
    color: #fff;
    font-weight: 700;
    padding: .8rem 1.4rem;
    border-radius: 14px;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
    box-shadow: 0 8px 20px rgba(34, 197, 94, .35);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    color: #fff;
    filter: brightness(1.07);
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(34, 197, 94, .42);
}

/* ---------- Privacy note ---------- */
.privacy-note {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: .8rem 1rem;
    font-size: .8rem;
    color: var(--ink-soft);
    line-height: 1.5;
}

.privacy-note i {
    color: var(--brand-dark);
}

/* ---------- Success page ---------- */
.success-card {
    max-width: 560px;
    margin: 2.5rem auto 0;
}

.success-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(120deg, var(--brand-dark), var(--brand));
    color: #fff;
    font-size: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 10px 30px rgba(8, 145, 178, .4);
}

.reg-id-box {
    background: linear-gradient(120deg, #ecfeff, #f0f9ff);
    border: 1.5px dashed var(--brand);
    border-radius: 14px;
    padding: 1rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-darker);
    letter-spacing: .5px;
}

.divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--ink-soft);
    font-size: .85rem;
    font-weight: 600;
    margin: 1.25rem 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* ---------- Toasts ---------- */
.toast-container-public {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1080;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    flex-shrink: 0;
}

.footer-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.footer-contact a {
    color: #67e8f9;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-copy {
    font-size: .82rem;
    color: #94a3b8;
}

/* ---------- Responsive ---------- */
@media (max-width: 576px) {
    .site-logo {
        width: 52px;
        height: 52px;
    }

    .site-title {
        font-size: 1.3rem;
    }

    .reg-card .card-body {
        padding: 1.25rem;
    }
}
