:root {
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(0, 0, 0, 0.06);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent: #059669; /* NCP Emerald Green */
    --accent-hover: #047857;
    --accent-light: rgba(5, 150, 105, 0.08);
    --glow-color: rgba(5, 150, 105, 0.2);
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Background Glows */
.ambient-glows {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.55;
    animation: float 20s infinite alternate ease-in-out;
}

.glow-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    top: -50px;
    left: -100px;
}

.glow-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -150px;
    right: -100px;
    animation-duration: 28s;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.05); }
}

/* Layout & Card */
main {
    width: 100%;
    max-width: 550px;
    padding: 40px 20px;
    margin: auto;
    z-index: 2;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-radius: 24px;
    padding: 38px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.04);
}

.screen {
    display: none;
    flex-direction: column;
    gap: 22px;
}

.screen.active {
    display: flex;
    animation: fadeInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation & Status Badge */
.back-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font-body);
    width: fit-content;
    transition: color 0.15s ease;
}

.back-nav:hover {
    color: var(--accent);
}

.badge-wrapper {
    display: flex;
    justify-content: center;
}

.status-badge {
    background: var(--accent-light);
    border: 1px solid rgba(5, 150, 105, 0.12);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Header Content */
.header-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

h1 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    word-break: break-word;
}

h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.domain-display-text {
    color: var(--accent);
    font-weight: 800;
    word-break: break-word;
}

.party-title {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* CTA Button */
.cta-btn {
    background: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    padding: 13px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px -5px rgba(5, 150, 105, 0.25);
    width: 100%;
    max-width: 250px;
    margin: 6px auto 0;
}

.cta-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* Form Controls */
form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    color: #94a3b8;
    font-size: 0.9rem;
}

input,
textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

input {
    padding: 11px 16px 11px 40px;
    height: 44px;
}

textarea {
    padding: 12px 16px;
    min-height: 95px;
    resize: vertical;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--glow-color);
}

.input-wrapper:focus-within i {
    color: var(--accent);
}

button[type="submit"] {
    background: var(--accent);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 600;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

button[type="submit"]:hover {
    background: var(--accent-hover);
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Feedback Screens */
.feedback-container {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 0;
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.feedback-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.success-icon {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.error-icon {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.feedback-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.feedback-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 18px;
}

.feedback-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.88rem;
    padding: 8px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feedback-btn:hover {
    background: #e2e8f0;
}

/* Footer */
footer {
    width: 100%;
    text-align: center;
    padding: 24px;
    color: #64748b;
    font-size: 0.78rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

footer a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    color: var(--accent);
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    main {
        padding: 20px 14px;
    }

    .card {
        padding: 28px 18px;
        border-radius: 20px;
    }

    h1 {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 1.3rem;
    }
}
