:root {
    --brand-blue: #4570EA;
    --brand-blue-dark: #2f5fe3;
    --ink-900: #112346;
    --ink-700: #324d7d;
    --ink-600: #5f7398;
    --card-border: rgba(69, 112, 234, 0.24);
    --bg-light: #F0F4FF;
    --border-light: #D8E2FC;
    --success-green: #16a34a;
    --success-bg: #ecfaf1;
    --danger-red: #dc2626;
    --danger-bg: #ffeff1;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 255, 0.96));
    border: 1px solid var(--card-border);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(19, 49, 115, 0.25), 0 4px 14px rgba(66, 116, 231, 0.14);
    max-width: 600px;
    width: 100%;
    padding: 36px;
    position: relative;
    z-index: 1;
    animation: container-fade 0.4s ease-out;
}

@keyframes container-fade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.header-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 24px auto;
    background: #0f172a; /* Dark slate background to contrast the white logo text */
    padding: 10px 24px;
    border-radius: 12px;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.header-logo img {
    max-height: 32px;
    width: auto;
    display: block;
}

.header-caption {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-blue);
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

h1 {
    color: var(--ink-900);
    margin-bottom: 12px;
    font-size: 24px;
    line-height: 1.25;
    text-align: center;
}

.subtitle {
    color: var(--ink-700);
    margin-bottom: 28px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

/* States */
.state {
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    display: none;
    border: 1px solid transparent;
    text-align: center;
}

.state.active {
    display: block;
}

.state h3 {
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 700;
}

.state p {
    font-size: 14px;
    line-height: 1.4;
}

.state.loading {
    background: #e9f2ff;
    color: #1f4596;
    border-color: rgba(69, 112, 234, 0.28);
}

.state.error {
    background: var(--danger-bg);
    color: #c42f4a;
    border-color: rgba(196, 47, 74, 0.25);
}

.state.success {
    background: var(--success-bg);
    color: #1b7d4a;
    border-color: rgba(27, 125, 74, 0.24);
}

/* Form styling */
.form-section {
    display: none;
    text-align: left;
}

.form-section.active {
    display: block;
}

.section-group {
    margin-bottom: 24px;
    background: rgba(69, 112, 234, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
}

.section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    border-bottom: 1.5px solid var(--border-light);
    padding-bottom: 6px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-900);
    margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    font-size: 14px;
    color: var(--ink-900);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(69, 112, 234, 0.15);
}

.form-group input::placeholder {
    color: var(--ink-600);
    opacity: 0.6;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500 !important;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1.5px solid var(--border-light);
    accent-color: var(--brand-blue);
    cursor: pointer;
}

.submit-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(145deg, var(--brand-blue), var(--brand-blue-dark));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
    box-shadow: 0 4px 12px rgba(69, 112, 234, 0.24);
}

.submit-button:hover {
    opacity: 0.95;
}

.submit-button:active {
    transform: scale(0.98);
}

.submit-button:disabled {
    background: var(--ink-600);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.6;
}

.footer {
    margin-top: 32px;
    font-size: 11px;
    color: var(--ink-600);
    text-align: center;
    opacity: 0.8;
}
