﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    --sky: #e8f4fd;
    --sky2: #d0eafb;
    --mint: #e6f7f2;
    --peach: #fff0ea;
    --lavender: #f0ecff;
    --lav2: #e2d9ff;
    --gold: #fff8e1;
    --navy: #1a3a5c;
    --navy2: #123458;
    --blue: #2176ae;
    --teal: #1a9e7a;
    --coral: #e85d26;
    --purple: #5b3fa6;
    --text: #1c1c2e;
    --muted: #5a607a;
    --hint: #9ea5bf;
    --white: #ffffff;
    --border: rgba(90,100,150,.13);
    --border-md: rgba(90,100,150,.22);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}
/* ── Page ── */
body {
    font-family: 'Nunito',sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg,#e8f4fd 0%,#f0ecff 40%,#e6f7f2 70%,#fff0ea 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    /*padding: 1rem 1rem 1rem 1rem;*/
    padding-top: 15px;
    position: relative;
    overflow-x: hidden;
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle,rgba(91,63,166,.13),transparent 65%);
    top: -120px;
    left: -160px;
    animation: orb1 14s ease-in-out infinite;
}

.orb-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle,rgba(26,158,122,.11),transparent 65%);
    bottom: -100px;
    right: -120px;
    animation: orb2 17s ease-in-out infinite;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle,rgba(33,118,174,.09),transparent 65%);
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    animation: orb1 20s ease-in-out infinite reverse;
}


/* ── Card ── */
.newcard {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1600px;
    background: rgba(255,255,255,.84);
    backdrop-filter: blur(24px) saturate(1.5);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255,255,255,.95);
    box-shadow: 0 2px 4px rgba(0,0,0,.03), 0 8px 32px rgba(0,0,0,.07), 0 24px 64px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.8);
    overflow: hidden;
    animation: fadeUp .8s cubic-bezier(.22,.68,0,1.2) both;
}

/* ── Banner ── */
.banner {
    background: linear-gradient(115deg,#123458 0%,#2176ae 52%,#5b3fa6 100%);
    padding: 1rem 1rem 1rem;
    position: relative;
    overflow: hidden;
}

.banner-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.06) 1px,transparent 1px);
    background-size: 24px 24px;
}

.banner-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle,rgba(255,255,255,.06),transparent 70%);
    top: -100px;
    right: -60px;
    pointer-events: none;
}

.banner-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.banner-icon {
    width: 80px;
    height: 80px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /*box-shadow: 0 4px 12px rgba(0,0,0,0.15);*/ /* nice shadow */
    animation: pulse 3.5s ease-in-out infinite;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.banner-text h1 {
    font-family: 'Playfair Display',serif;
    font-size: 25px;
    font-weight: 600;
    color: #fff;
    letter-spacing: .01em;
}

.banner-text p {
    font-size: 13.5px;
    color: rgba(255,255,255,.68);
    margin-top: 3px
}

.banner-badge {
    margin-left: auto;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.22);
    color: rgba(255,255,255,.85);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    white-space: nowrap;
    align-self: flex-start;
}

.progress-track {
    background: linear-gradient(90deg, #ff6b6b 0%, #ffa94d 14%, #ffe066 28%, #69db7c 42%, #38d9a9 56%, #4dabf7 70%, #a78bfa 84%, #f783ac 100% );
    height: 5px;
    position: relative;
    overflow: hidden;
}

    .progress-track::before {
        content: '';
        position: absolute;
        inset: 0;
        background: repeating-linear-gradient( 90deg, rgba(255,255,255,.18) 0px, rgba(255,255,255,.18) 1px, transparent 1px, transparent 40px );
        z-index: 2;
        pointer-events: none;
    }

/* ── Form body ── */
.form-body {
    padding: 1rem 1rem 1rem 1rem;
}

/* ── Section ── */
.section {
    animation: fadeUp .5s ease both
}

    .section:nth-child(1) {
        animation-delay: .15s
    }

    .section:nth-child(2) {
        animation-delay: .28s
    }

    .section:nth-child(3) {
        animation-delay: .4s
    }

.sec-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1.8rem 0 1.1rem;
}

.sec-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .sec-icon svg {
        width: 16px;
        height: 16px
    }

.si-b {
    background: var(--sky2)
}

    .si-b svg {
        fill: var(--blue)
    }

.si-t {
    background: var(--mint)
}

    .si-t svg {
        fill: var(--teal)
    }

.si-p {
    background: var(--lav2)
}

    .si-p svg {
        fill: var(--purple)
    }

.sec-title {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.sec-line {
    flex: 1;
    height: .5px;
    background: var(--border)
}

/* ── Grid ── */
.grid {
    display: grid;
    gap: 16px
}

.g1 {
    grid-template-columns: 1fr
}

.g2 {
    grid-template-columns: 1fr 1fr
}

.g3 {
    grid-template-columns: 1fr 1fr 1fr
}

.g312 {
    grid-template-columns: 1fr 1fr 2fr
}

/* ── Field ── */
.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    animation: labelIn .4s ease both
}

    .field label {
        font-size: 11.5px;
        font-weight: 700;
        color: var(--muted);
        letter-spacing: .04em;
        display: flex;
        align-items: center;
        gap: 4px;
    }

.req {
    color: var(--coral)
}

.field-wrap {
    position: relative
}

.field input[type=text],
.field input[type=tel],
.field input[type=email],
.field textarea {
    width: 100%;
    font-family: 'Nunito',sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    border: 1.5px solid var(--border-md);
    border-radius: var(--radius);
    padding: 11px 14px;
    outline: none;
    transition: all .22s ease;
    appearance: none;
}

    .field input::placeholder,
    .field textarea::placeholder {
        color: var(--hint);
        font-weight: 400
    }

/* tinted backgrounds */
.f-sky input, .f-sky select {
    background: var(--sky)
}

.f-mint input, .f-mint select {
    background: var(--mint)
}

.f-peach input {
    background: var(--peach)
}

.f-lav select {
    background: var(--lavender)
}

.f-gold textarea {
    background: var(--gold)
}

.f-white input {
    background: #fff
}

.field input:hover, .field select:hover, .field textarea:hover {
    border-color: rgba(90,100,150,.32);
    filter: brightness(1.01);
}

.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--blue);
    background: #fff !important;
    animation: borderGlow 3s ease infinite;
}

.field textarea {
    resize: vertical;
    min-height: 102px;
    line-height: 1.65
}


/* field icon */
.fi {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: .35
}

    .fi svg {
        width: 16px;
        height: 16px;
        fill: var(--muted)
    }

.has-fi input, .has-fi select {
    padding-right: 40px
}

/* ── Info chips ── */
.chips {
    display: flex;
    flex-direction: column;
    gap: 7px;
    justify-content: flex-end;
    padding-bottom: 3px
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    animation: popIn .4s ease both;
}

    .chip svg {
        width: 10px;
        height: 10px;
        fill: currentColor
    }

.ch-b {
    background: var(--sky2);
    color: var(--blue)
}

.ch-t {
    background: var(--mint);
    color: var(--teal)
}

/* ── Actions ── */
.actions {
    padding: 1.5rem 2.5rem 2rem;
    background: linear-gradient(to bottom,transparent,rgba(240,244,255,.45));
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    font-family: 'Nunito',sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 26px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform .15s,box-shadow .2s;
    white-space: nowrap;
}

    .btn:hover {
        transform: translateY(-2px)
    }

    .btn:active {
        transform: translateY(0) scale(.97)
    }

    /* ripple */
    .btn .rpl {
        position: absolute;
        border-radius: 50%;
        background: rgba(255,255,255,.5);
        width: 10px;
        height: 10px;
        pointer-events: none;
        animation: ripple .55s ease-out forwards;
    }

.btn-save {
    background: linear-gradient(135deg,var(--navy2) 0%,var(--blue) 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(26,58,92,.28);
}

    .btn-save:hover {
        box-shadow: 0 7px 28px rgba(26,58,92,.38)
    }

.btn-print {
    background: linear-gradient(135deg,#1a9e7a 0%,#2ad8a8 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(26,158,122,.26);
}

    .btn-print:hover {
        box-shadow: 0 7px 28px rgba(26,158,122,.36)
    }

.btn-reset {
    background: #fff;
    color: var(--muted);
    border: 1.5px solid var(--border-md);
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

    .btn-reset:hover {
        background: var(--sky);
        color: var(--text)
    }

.btn svg {
    width: 16px;
    height: 16px;
    vertical-align: -3px;
    margin-right: 5px
}

.req-note {
    margin-left: auto;
    font-size: 12px;
    color: var(--hint)
}

    .req-note .req {
        font-size: 13px
    }

/* ── Toast ── */
#toast {
    position: fixed;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1c1c2e;
    color: #fff;
    font-family: 'Nunito',sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    padding: 11px 24px;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
    transition: opacity .25s,transform .3s cubic-bezier(.22,.68,0,1.2);
}

    #toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0)
    }

.shake {
    animation: shake .35s ease
}

@media (max-width: 768px) {

    body {
        padding: 10px;
        align-items: flex-start;
    }

    .newcard {
        max-width: 100%;
        border-radius: 16px;
    }

    .banner-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .banner-badge {
        display: none;
    }

    .banner-text h1 {
        font-size: 18px;
    }

    .banner-text p {
        font-size: 12px;
    }

    .form-body {
        padding: 1rem;
    }

    .g2,
    .g3,
    .g312 {
        grid-template-columns: 1fr !important;
    }

    .actions {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .req-note {
        margin-left: 0;
        text-align: center;
        width: 100%;
    }
}

.page-title.error {
    background: linear-gradient(135deg, #fff5f5, #fdeaea);
    padding: 20px;
    border-radius: 16px;
    margin: 20px 0;
    border-left: 6px solid #dc3545; /* red */
    box-shadow: 0 10px 25px rgba(220,53,69,0.15), inset 0 1px 0 rgba(255,255,255,0.9);
    animation: slideIn 0.5s ease-out;
}

    .page-title.error h2 {
        margin: 0;
        font-size: 20px;
        font-weight: 600;
        color: #dc3545;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .page-title.error p {
        margin: 8px 0 0;
        color: #842029;
        font-size: 14px;
    }

.page-title.success {
    background: linear-gradient(135deg, #f0fff4, #e6f9ec);
    padding: 20px;
    border-radius: 16px;
    margin: 20px 0;
    border-left: 6px solid #28a745; /* green */
    box-shadow: 0 10px 25px rgba(40,167,69,0.15), inset 0 1px 0 rgba(255,255,255,0.9);
    animation: slideIn 0.5s ease-out;
}

    .page-title.success h2 {
        margin: 0;
        font-size: 20px;
        font-weight: 600;
        color: #28a745;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .page-title.success p {
        margin: 8px 0 0;
        color: #155724;
        font-size: 14px;
    }
