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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #2D425C 50%, #16213e 100%);
    min-height: 100vh;
    color: #000000;
    line-height: 1.6;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

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

.header .logo {
    max-width: 220px;
    height: auto;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #2D425C 0%, #1a2d42 100%);
    padding: 15px 25px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(45, 66, 92, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header h1 {
    font-size: 32px;
    color: #2D425C;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header p {
    color: #6b7280;
    font-size: 16px;
}

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

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2D425C;
    font-size: 15px;
}

textarea,
input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f9fafb;
    color: #1f2937;
}

textarea::placeholder,
input[type="text"]::placeholder {
    color: #9ca3af;
}

textarea:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #2D425C;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(45, 66, 92, 0.1);
    transform: translateY(-1px);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

button[type="submit"] {
    width: 100%;
    padding: 16px;
    background: #2D425C;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(45, 66, 92, 0.3);
}

button[type="submit"]:hover {
    background: #1a2d42;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 66, 92, 0.4);
}

button[type="submit"]:active {
    transform: translateY(0);
}

button[type="submit"]:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loader {
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.message {
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    font-size: 14px;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #34d399;
    border-radius: 12px;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #f87171;
    border-radius: 12px;
}

/* Countdown Overlay */
.countdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #2D425C 50%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.countdown-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.countdown-content {
    text-align: center;
    color: #ffffff;
    padding: 40px;
}

.countdown-logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #2D425C 0%, #1a2d42 100%);
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.countdown-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.countdown-timer {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.countdown-timer .time-block {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 25px;
    border-radius: 16px;
    min-width: 90px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-timer .time-value {
    font-size: 42px;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.countdown-timer .time-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-top: 8px;
    display: block;
}

/* Make it iframe-friendly */
@media (max-width: 600px) {
    body {
        padding: 20px 15px;
    }

    .container {
        padding: 30px 25px;
        border-radius: 16px;
    }

    .header h1 {
        font-size: 26px;
    }

    .header .logo {
        max-width: 180px;
    }

    .countdown-content {
        padding: 20px;
    }

    .countdown-logo {
        max-width: 200px;
        padding: 15px 20px;
        margin-bottom: 30px;
    }

    .countdown-content h2 {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .countdown-timer {
        gap: 12px;
    }

    .countdown-timer .time-block {
        padding: 15px 18px;
        min-width: 70px;
    }

    .countdown-timer .time-value {
        font-size: 28px;
    }

    .countdown-timer .time-label {
        font-size: 11px;
    }
}
