
:root {
    --bg-primary: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.85);
    --border-color: rgba(15, 23, 42, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --accent-glow: rgba(59, 130, 246, 0.15);
    --accent-color: #3b82f6;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', var(--font-sans);
    --border-radius: 20px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    line-height: 1.5;
}

.app-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-card {
    width: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08),
                0 0 0 1px rgba(0, 0, 0, 0.04);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.package-banner {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.form-card-content {
    padding: 3rem 2.5rem;
}

.form-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.form-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.tour-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    background: linear-gradient(to right, #0f172a, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tour-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    background: rgba(15, 23, 42, 0.02);
    border: 1.5px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-smooth);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.03);
}

.form-input.error:focus {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

label.error {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.82rem;
    color: #dc2626;
    font-weight: 400;
}

.form-input:focus {
    border-color: var(--accent-color);
    background: #ffffff;
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.15);
    margin-top: 1rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.25),
                0 0 10px rgba(139, 92, 246, 0.2);
}

.btn-submit:active {
    transform: translateY(1px);
}

.btn-submit-text {
    margin-right: 0.5rem;
}

.btn-submit-icon {
    transition: var(--transition-smooth);
}

.btn-submit:hover .btn-submit-icon {
    transform: translateX(4px);
}

.error-banner {
    padding: 0.8rem 1rem;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    color: #b91c1c;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    animation: shake 0.4s ease-in-out;
}

.success-banner {
    padding: 0.8rem 1rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    color: #065f46;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

@media (max-width: 600px) {
    .app-container {
        padding: 1rem 0.5rem;
    }

    .form-card {
        border-radius: 16px;
    }

    .package-banner {
        height: 160px;
    }

    .form-card-content {
        padding: 2rem 1.5rem;
    }

    .tour-title {
        font-size: 1.8rem;
    }

    .tour-description {
        font-size: 0.9rem;
    }
}