/* ===== ESSENTIAL CSS VARIABLES ===== */
:root {
    --primary-color: #1a73e8;
    --secondary-color: #34a853;
    --accent-color: #fbbc05;
    --danger-color: #ea4335;
    --warning-color: #ff9800;
    --dark-color: #202124;
    --gray-color: #5f6368;
    --light-color: #f8f9fa;
    --shadow: 0 4px 12px rgba(0,0,0,.08);
    --transition: all 0.3s ease;
    --gold-color: #ffd700;
    --silver-color: #c0c0c0;
    --bronze-color: #cd7f32;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.form-group.hidden {
    display: none !important;
}

.btn.btn-warning {
  background: linear-gradient(135deg,#ff9800,#f57c00);
  color: white;
}

body {
    font-family: 'Changa', sans-serif;
    background: #f5f7fa;
    color: var(--dark-color);
    line-height: 1.6;
    text-align: right;
    overflow-x: hidden;
}
.ad-text-div{text-align: center;color:#666;font-size:12px;margin:5px 0 15px;opacity:.8;padding:8px;background:#f8f9fa;border-radius:6px}
.ad-span{display:inline-flex;align-items:center;gap:8px}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== BUTTON STYLES ===== */
.btn {
    padding: 6px 12px;
    border-radius: 8px;
    border: none;
    font-family: 'Changa', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    text-decoration: none;
margin-bottom:5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0d47a1);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0d62d9, #0d3c8a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333 !important;
   
}

.btn-secondary:hover {
    background: #e9ecef;
    
}

.btn-success {
    background: linear-gradient(135deg, var(--secondary-color), #2d9748);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #2d9748, #1e7e34);
    transform: translateY(-2px);
}

/* ===== HEADER STYLES ===== */
.main-header {
    background: linear-gradient(135deg, var(--primary-color), #0d47a1);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 2rem;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
}

/* ===== STEP-BY-STEP FORM STYLES ===== */
.form-container {
    min-height: 80vh;
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.steps-header {
    text-align: center;
    margin-bottom: 3rem;
}

.steps-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.steps-header p {
    color: var(--gray-color);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Progress Steps */
.steps-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    position: relative;
}

.steps-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 4px;
    background: #e0e0e0;
    z-index: 1;
    transform: translateY(-50%);
}

.step-item {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    transition: var(--transition);
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.step-item.active .step-circle {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 5px rgba(26, 115, 232, 0.2);
}

.step-item.completed .step-circle {
    background: var(--secondary-color);
    color: white;
}

.step-label {
    font-size: 0.9rem;
    color: var(--gray-color);
    font-weight: 500;
}

/* Step Content */
.step-content-container {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.step-content-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.step {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.step.active {
    display: block;
}

.step-header {
    text-align: center;
    margin-bottom: 2rem;
}

.step-header h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.step-header p {
    color: var(--gray-color);
    font-size: 1.1rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Changa', sans-serif;
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-control.error {
    border-color: var(--danger-color);
    animation: shake 0.5s;
}

.error-message {
    color: var(--danger-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

/* Message Options */
.message-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.message-option {
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    background: #f8f9fa;
}

.message-option:hover {
    border-color: var(--primary-color);
    background: #e8f0fe;
}

.message-option.selected {
    border-color: var(--primary-color);
    background: #e8f0fe;
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.2);
    position: relative;
}

.message-option.selected::before {
    content: '✓';
    position: absolute;
    top: -10px;
    left: -10px;
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    gap: 1rem;
}

.step-preview {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 2px dashed #e0e0e0;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.preview-item:last-child {
    border-bottom: none;
}

/* ===== CELEBRATION PAGE STYLES ===== */
.celebration-container {
    min-height: 100vh;
    background: linear-gradient(135deg, 
        #1a237e 0%, 
        #283593 25%, 
        #303f9f 50%, 
        #3949ab 75%, 
        #3f51b5 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: skyAnimation 20s infinite alternate;
}

@keyframes skyAnimation {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Enhanced Confetti */
.confetti-piece {
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--gold-color);
    opacity: 0.8;
    animation: confettiFall 5s linear infinite;
    border-radius: 3px;
    z-index: 2;
}

.confetti-piece:nth-child(2n) {
    background: var(--primary-color);
}

.confetti-piece:nth-child(3n) {
    background: var(--secondary-color);
}

.confetti-piece:nth-child(5n) {
    background: #ff4081;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Celebration Content */
.celebration-content {
    position: relative;
    z-index: 10000;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 3rem;
    margin: 2rem auto;
    max-width: 900px;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.3),
        0 0 80px rgba(255, 215, 0, 0.2);
    border: 3px solid var(--gold-color);
    animation: glowPulse 3s infinite alternate;
}

@keyframes glowPulse {
    0% { box-shadow: 
        0 20px 60px rgba(0,0,0,0.3),
        0 0 60px rgba(255, 215, 0, 0.2); }
    100% { box-shadow: 
        0 20px 60px rgba(0,0,0,0.3),
        0 0 100px rgba(255, 215, 0, 0.4); }
}

.celebration-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, 
        var(--gold-color), 
        var(--silver-color), 
        var(--bronze-color)) 1;
}

.celebration-title {
    font-size: 2.8rem;
    color: transparent;
    background: linear-gradient(45deg, 
        var(--primary-color),
        var(--gold-color),
        #ff4081);
    -webkit-background-clip: text;
    background-clip: text;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Student Card */
.student-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(248, 250, 252, 0.95) 100%);
    border-radius: 20px;
    padding: 2rem 0.5rem;
    margin: 1rem 0;
    border: 2px solid transparent;
  
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.student-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, 
        var(--gold-color), 
        #ff9800, 
        var(--gold-color));
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.student-name {
    font-size: 2.8rem;
    color: var(--primary-color);
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    display: inline-block;
    padding: 0 20px;
    width: 100%;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Achievement Badges */
.achievement-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin: 1rem 0;
    padding: 1.2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border-left: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    width: 100%;
}

.achievement-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.achievement-badge i {
    font-size: 1.8rem;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Message Card */
.message-card {
    background: linear-gradient(135deg, 
        rgba(232, 245, 233, 0.95) 0%, 
        rgba(200, 230, 201, 0.9) 100%);
    border-radius: 15px;
    padding: 2rem;
    margin: 1.5rem 0;
    border-right: 5px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.message-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 6rem;
    color: rgba(52, 168, 83, 0.1);
    font-family: serif;
    line-height: 1;
}

.sender-info {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

/* Celebration Ticker */
.celebration-ticker {
    background: linear-gradient(90deg, 
        var(--primary-color),
        var(--secondary-color),
        var(--accent-color));
    color: white;
    padding: 12px 0;
    margin: 2rem 0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: flex;
    animation: tickerScroll 20s linear infinite;
    white-space: nowrap;
}

@keyframes tickerScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Audio Player */
.audio-player-celebration {
    background: linear-gradient(135deg, white, #f8f9fa);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.audio-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.audio-btn:hover {
    background: #0d62d9;
    transform: scale(1.1);
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.1s;
}

/* Celebration Actions */
.celebration-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.celebration-btn {
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s;
    min-width: 200px;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-family: 'Changa', sans-serif;
}

.celebration-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.celebration-btn.whatsapp { 
    background: linear-gradient(135deg, #25D366, #128C7E); 
    color: white; 
}
.celebration-btn.facebook { 
    background: linear-gradient(135deg, #1877F2, #0d47a1); 
    color: white; 
}
.celebration-btn.create-new { 
    background: linear-gradient(135deg, #ff9800, #f57c00); 
    color: white; 
}
.celebration-btn.copy { 
    background: linear-gradient(135deg, #9c27b0, #7b1fa2); 
    color: white; 
}
.celebration-btn.download { 
    background: linear-gradient(135deg, #4caf50, #2e7d32); 
    color: white; 
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    display: none;
    flex-direction: column;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== FOOTER ===== */
.main-footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
    position: relative;
    z-index: 10001;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    transform: translateX(-5px);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .step-content-container {
        padding: .8rem;
        margin: 0 0.4rem;
    }

    .steps-progress {
        margin: 0 1rem 2rem;
    }

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-label {
        font-size: 0.8rem;
        text-align: center;
    }

    .celebration-content {
      margin: 2rem 0rem;
    padding: .3rem;
    }

    .celebration-title {
        font-size: 1.8rem;
        flex-direction: column;
    }

    .student-name {
        font-size: 1.8rem;
    }

    .celebration-actions {
        flex-direction: column;
    }

    .celebration-btn {
        width: 100%;
    }

    .step-actions {
        flex-direction: column;
    }

    .btn {
       
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .step-content-container {
        padding: 0.5rem;
    }

    .steps-header h1 {
        font-size: 1.8rem;
    }

    .step-header h2 {
        font-size: 1.4rem;
    }

    .student-name {
        font-size: 1.5rem;
    }
    
    .celebration-title {
        font-size: 1.5rem;
    }
    
    .achievement-badge {
        flex-direction: column;
        text-align: center;
    }
}