:root {
    --primary-color: #1E3A8A;
    --primary-hover: #2563EB;
    --text-color: #001219;
    --text-light: #e9ecef;
    --white: #ffffff;
    --success-color: #2a9d8f;
    --error-color: #e63946;
}

html {
    font-size: 18px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    position: relative;
    padding: 20px;
}

.background-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('bg.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
}

.background-overlay::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0, 18, 25, 0.4) 0%, rgba(0, 95, 115, 0.1) 100%);
}

.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 500px;
}

/* Professional Glassmorphism Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

header {
    text-align: center;
    margin-bottom: 32px;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.placeholder-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
    font-weight: 400;
}

.summer-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

input[type="text"] {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.4);
    font-size: 1.05rem;
    color: var(--text-color);
    outline: none;
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

input[type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 95, 115, 0.15);
}

input::placeholder {
    color: #adb5bd;
}

/* Custom Toggle Switch */
.toggle-wrapper {
    margin-top: 4px;
}

.toggle-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.toggle-input {
    display: none;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--white);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle-input:checked + .toggle-switch {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.toggle-input:checked + .toggle-switch::after {
    transform: translateX(20px);
}

.toggle-text {
    font-size: 0.95rem;
    color: var(--text-color);
}

.info-block {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 4px;
    margin-bottom: 4px;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.info-block p strong {
    font-weight: 700;
    font-size: 1.05rem;
}

.payment-link {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.payment-link:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.action-wrapper {
    margin-top: 8px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.submit-btn:hover {
    background: var(--primary-hover);
}

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

.submit-btn:disabled {
    background: #ced4da;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Spinner Animation */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
}

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

.hidden {
    display: none !important;
}

.status-alert {
    padding: 14px 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
    margin-top: 16px;
    animation: fadeIn 0.3s ease;
}

.status-alert.success {
    background: #e6fcf5;
    color: #0ca678;
    border: 1px solid #c3fae8;
}

.status-alert.error {
    background: #fff5f5;
    color: #e03131;
    border: 1px solid #ffe3e3;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .glass-panel {
        padding: 32px 24px;
    }
    h1 {
        font-size: 1.75rem;
    }
}
