/* iKasavu Lucky Draw Main Stylesheet
   Kerala Traditional Kasavu Theme: Ivory/Cream (#FDFBF7) and Rich Gold (#D4AF37) */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --bg-cream-light: #FDFBF7;
    --bg-cream-dark: #F5EFEB;
    --gold-primary: #C5A038;
    --gold-light: #E7C972;
    --gold-dark: #9A7B1C;
    --text-dark: #3D352E;
    --text-muted: #7A6F62;
    --card-bg: rgba(255, 255, 255, 0.85);
    --border-gold: 1px solid rgba(197, 160, 56, 0.25);
    --border-gold-focus: 1px solid rgba(197, 160, 56, 0.7);
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --shadow-luxury: 0 15px 35px rgba(61, 53, 46, 0.08), 0 5px 15px rgba(197, 160, 56, 0.04);
}

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

body {
    background: linear-gradient(135deg, var(--bg-cream-light) 0%, var(--bg-cream-dark) 100%);
    color: var(--text-dark);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Elegant Kasavu Border Pattern (Traditional Saree Border Accent) */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, 
        var(--gold-dark) 0%, 
        var(--gold-light) 25%, 
        var(--gold-primary) 50%, 
        var(--gold-light) 75%, 
        var(--gold-dark) 100%
    );
    z-index: 10;
}

/* Subtle decorative golden circular shapes in background */
.bg-decoration-1 {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(231, 201, 114, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
    top: -50px;
    right: -50px;
    pointer-events: none;
}

.bg-decoration-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(197, 160, 56, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -100px;
    left: -100px;
    pointer-events: none;
}

/* Premium Card Wrapper with glassmorphism */
.registration-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    max-width: 500px;
    padding: 40px 30px;
    border-radius: 20px;
    border: var(--border-gold);
    box-shadow: var(--shadow-luxury);
    position: relative;
    z-index: 2;
    animation: slideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: translateY(30px);
    opacity: 0;
}

@keyframes slideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Traditional Saree Zari Line Details on Card Header and Footer */
.card-header-accent {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    margin: 15px auto 25px auto;
}

.logo-container {
    text-align: center;
    margin-bottom: 5px;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-dark);
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 50%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 2px 4px rgba(197, 160, 56, 0.1);
}

.logo-sub {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: -2px;
}

/* Header Text / Welcome Messages */
.welcome-title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-style: italic;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.4;
    margin-bottom: 25px;
    font-weight: 600;
    padding: 0 10px;
}

/* Beautiful form layouts */
.form-group {
    margin-bottom: 22px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-dark);
    background-color: rgba(255, 255, 255, 0.7);
    border: var(--border-gold);
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
}

.form-input:focus {
    background-color: #ffffff;
    border: var(--border-gold-focus);
    box-shadow: 0 0 0 4px rgba(197, 160, 56, 0.1);
}

.form-input::placeholder {
    color: #bcaea0;
}

/* Elegant CTA Button (Kasavu Gold) */
.btn-submit {
    width: 100%;
    padding: 16px;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 50%, var(--gold-light) 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(197, 160, 56, 0.25);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.btn-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: 0.75s;
    opacity: 0;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 50%, var(--gold-dark) 100%);
    box-shadow: 0 6px 20px rgba(197, 160, 56, 0.35);
    transform: translateY(-2px);
}

.btn-submit:hover::after {
    left: 125%;
    opacity: 1;
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(197, 160, 56, 0.2);
}

/* Error Message styling */
.error-msg {
    color: #B22222;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
    font-weight: 500;
}

/* Success Card details */
.success-icon-container {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(197, 160, 56, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border: 2px solid var(--gold-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    color: var(--gold-dark);
    font-size: 2.2rem;
    animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.success-message {
    text-align: center;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 25px;
}

.success-details {
    background: rgba(245, 239, 235, 0.6);
    border: 1px dashed rgba(197, 160, 56, 0.4);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(61, 53, 46, 0.05);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.detail-val {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Ticket Unique ID badge in Success Screen */
.ticket-badge {
    text-align: center;
    background: linear-gradient(135deg, #FFFDF9 0%, #F5EFEB 100%);
    border: 2px solid var(--gold-primary);
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
}

.ticket-badge-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.ticket-badge-id {
    font-family: var(--font-sans);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold-dark);
    letter-spacing: 2px;
}

/* Small instructions at the bottom */
.footer-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 25px;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .registration-card {
        padding: 30px 20px;
    }
    .logo-text {
        font-size: 2.1rem;
    }
}
