/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #6b46c1 0%, #9333ea 50%, #f59e0b 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.crown-animation {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    color: #fbbf24;
    animation: float 3s ease-in-out infinite;
    z-index: 10;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-brand i {
    color: #fbbf24;
    font-size: 2rem;
}

.btn-royal {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    color: #1f2937;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-royal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.hero-content {
    text-align: center;
    padding: 60px 20px;
    position: relative;
    z-index: 10;
}

.hero-title {
    margin-bottom: 20px;
}

.royal-text {
    display: block;
    font-family: 'Fredoka One', cursive;
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.king-text {
    display: block;
    font-family: 'Fredoka One', cursive;
    font-size: clamp(3rem, 10vw, 5rem);
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 2s infinite;
}

@keyframes shine {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-images {
    margin: 40px 0;
}

.floating-crown {
    width: 150px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    color: #1f2937;
    padding: 18px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.6);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.section-title {
    text-align: center;
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #fbbf24;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #6b46c1, #9333ea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 15px;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* Celebration Section */
.celebration {
    padding: 60px 0;
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    text-align: center;
}

.celebration-images {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.celebration-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.celebration-title {
    font-family: 'Fredoka One', cursive;
    font-size: 2.2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Loan Form Section */
.loan-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

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

.form-crown {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 15px rgba(251, 191, 36, 0.3));
}

.form-title {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
}

.form-subtitle {
    color: #d1d5db;
    font-size: 1.1rem;
}

.loan-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6b46c1;
    background: white;
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

.form-group.error input,
.form-group.error select {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    line-height: 1.5;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #6b46c1;
    cursor: pointer;
}

.checkmark {
    display: none;
}

.submit-button {
    width: 100%;
    background: linear-gradient(45deg, #6b46c1, #9333ea);
    color: white;
    padding: 18px 24px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    box-shadow: 0 6px 20px rgba(107, 70, 193, 0.3);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(107, 70, 193, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.success-content h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    margin-bottom: 15px;
}

.success-content i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fbbf24;
}

.success-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-top: 20px;
    border: 3px solid white;
}

/* Money Section */
.money-section {
    padding: 60px 0;
    background: linear-gradient(45deg, #1f2937, #374151);
}

.money-images {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.money-img {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    object-fit: cover;
    border: 4px solid #fbbf24;
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
    transition: all 0.3s ease;
}

.money-img:hover {
    transform: rotate(5deg) scale(1.05);
}

/* Footer */
.footer {
    background: #111827;
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
}

.footer-brand i {
    color: #fbbf24;
    font-size: 1.8rem;
}

.footer-text {
    text-align: center;
    flex-grow: 1;
}

.footer-text a {
    color: #fbbf24;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: #f59e0b;
}

.footer-crowns {
    display: flex;
    gap: 10px;
}

.footer-crowns i {
    color: #fbbf24;
    font-size: 1.5rem;
    animation: twinkle 1.5s infinite alternate;
}

.footer-crowns i:nth-child(2) {
    animation-delay: 0.5s;
}

.footer-crowns i:nth-child(3) {
    animation-delay: 1s;
}

@keyframes twinkle {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .loan-form {
        padding: 30px 20px;
    }
    
    .navbar {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-content {
        padding: 40px 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .celebration-images {
        gap: 20px;
    }
    
    .celebration-img {
        width: 100px;
        height: 100px;
    }
    
    .money-images {
        gap: 20px;
    }
    
    .money-img {
        width: 120px;
        height: 120px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .form-title {
        font-size: 2rem;
    }
    
    .celebration-title {
        font-size: 1.8rem;
    }
}

/* Loading Animation */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #6b46c1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
