/* ===================================
   Umrah Contest - Premium Styling
   =================================== */

/* Google Fonts Import - Islamic Style Fonts */
/* Cairo: خط هندسي حديث للنص العام */
/* Amiri: خط تقليدي (يُستخدم فقط لكلمة عمرة) */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Amiri:wght@400;700&display=swap');

/* CSS Variables for Theming */
:root {
    --primary-gold: #D4AF37;
    --primary-gold-light: #F4E5B2;
    --primary-green: #1B5E20;
    --primary-green-light: #4CAF50;
    --dark-bg: #0A1628;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --text-light: #FFFFFF;
    --text-muted: #B0BEC5;
    --shadow-gold: 0 0 30px rgba(212, 175, 55, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F4E5B2 50%, #D4AF37 100%);
    --gradient-green: linear-gradient(135deg, #1B5E20 0%, #4CAF50 100%);
    --gradient-bg: linear-gradient(135deg, #0A1628 0%, #1a2a4a 50%, #0A1628 100%);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    /* خط القاهرة - هندسي حديث للنص العام */
    background-color: #050d15;
    background-image:
        linear-gradient(to bottom, rgba(5, 13, 21, 0.6) 0%, rgba(10, 31, 48, 0.4) 50%, rgba(5, 13, 21, 0.7) 100%),
        url('background.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
    perspective: 1000px;
    letter-spacing: 0.02em;
    /* تحسين مسافة الأحرف */
}

/* خط تقليدي لكلمة "عمرة" فقط - خط الأميري */
.traditional-font,
.umrah-word {
    font-family: 'Amiri', serif !important;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.05em;
}

/* تأكيد على استخدام خط Cairo الهندسي لباقي العناصر */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
label,
button,
input,
select,
textarea,
.step-title,
.form-label,
.rating-label,
.btn-primary {
    font-family: 'Cairo', sans-serif;
}

/* Depth Vignette Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 20%, #050d15 100%);
    opacity: 0.8;
    z-index: -1;
    pointer-events: none;
}

@keyframes islamicPatternScroll {
    0% {
        transform: rotateX(20deg) translateZ(-100px) translateY(0);
    }

    100% {
        transform: rotateX(20deg) translateZ(-100px) translateY(-500px);
    }
}

/* Floating Particles Animation REMOVED */

/* Main Container */
.main-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Contest Card - Glassmorphism */
.contest-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 24px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.contest-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

/* Header Styling */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.header-logo {
    width: 120px;
    /* Smaller logo as requested */
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.8));
    /* Stronger gold glow */
    animation: floatLogo 4s ease-in-out infinite;
    z-index: 10;
    position: relative;
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.header-icon {
    font-size: 60px;
    margin-bottom: 15px;
    display: none;
    /* Hide emoji icon */
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.header h1 {
    font-size: 2.8rem;
    line-height: 1.3;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Step Sections */
.step {
    display: none;
    animation: slideIn 0.5s ease-out;
}

.step.active {
    display: block !important;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step Title */
.step-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 20px;
    text-align: center;
}

/* Info Alert */
.info-alert {
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.2) 0%, rgba(76, 175, 80, 0.1) 100%);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.info-alert p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-btn.facebook {
    background: linear-gradient(135deg, #1877F2 0%, #42A5F5 100%);
    color: white;
}

.social-btn.instagram {
    background: linear-gradient(135deg, #E1306C 0%, #F77737 100%);
    color: white;
}

.social-btn.tiktok {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Checkbox Styling */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.custom-checkbox:hover {
    background: rgba(255, 255, 255, 0.1);
}

.custom-checkbox input {
    width: 22px;
    height: 22px;
    accent-color: var(--primary-gold);
    cursor: pointer;
}

.custom-checkbox label {
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
}

/* Choice Buttons */
.choice-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.choice-btn {
    padding: 18px 24px;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(212, 175, 55, 0.3);
    background: var(--card-bg);
    color: var(--text-light);
    text-align: center;
}

.choice-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--primary-gold);
    transform: translateX(-5px);
    box-shadow: var(--shadow-gold);
}

.choice-btn.green {
    border-color: rgba(76, 175, 80, 0.3);
}

.choice-btn.green:hover {
    background: rgba(76, 175, 80, 0.1);
    border-color: var(--primary-green-light);
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.3);
}

/* Primary Button */
.btn-primary {
    width: 100%;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--gradient-gold);
    color: var(--dark-bg);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #666;
    color: #999;
}

.btn-primary.green {
    background: var(--gradient-green);
    color: white;
    box-shadow: 0 4px 15px rgba(27, 94, 32, 0.3);
}

.btn-primary.green:hover:not(:disabled) {
    box-shadow: 0 8px 25px rgba(27, 94, 32, 0.4);
}

/* Text Area */
.form-textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-light);
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.form-textarea::placeholder {
    color: var(--text-muted);
}

/* Survey Options (Radio & Checkbox) - Premium Design */
.survey-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.survey-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 2px solid rgba(212, 175, 55, 0.15);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.survey-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s ease;
}

.survey-option:hover::before {
    left: 100%;
}

.survey-option:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-color: var(--primary-gold);
    transform: translateX(-5px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

.survey-option input[type="radio"],
.survey-option input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--primary-gold);
    cursor: pointer;
    flex-shrink: 0;
}

.survey-option span {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.survey-option input:checked+span {
    color: var(--primary-gold);
    font-weight: 700;
}

.survey-option:has(input:checked) {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.08) 100%);
    border-color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

/* Star Rating - Premium Design */
.rating-section {
    text-align: center;
    margin-bottom: 25px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0.02) 100%);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 18px;
    position: relative;
}

.rating-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-gold), transparent, var(--primary-gold));
    border-radius: 18px;
    z-index: -1;
    opacity: 0.3;
}

/* Survey Progress Indicator - Enhanced */
.survey-progress {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, #F4E5B2 100%);
    color: var(--dark-bg);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    z-index: 10;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Service-specific Card Colors */
.step[id*="hotel"] .step-title {
    color: #4FC3F7;
}

.step[id*="hotel"] .rating-section {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.1) 0%, rgba(79, 195, 247, 0.03) 100%);
    border-color: rgba(79, 195, 247, 0.3);
}

.step[id*="hotel"] .survey-progress {
    background: linear-gradient(135deg, #4FC3F7, #81D4FA);
}

.step[id*="guide"] .step-title {
    color: #81C784;
}

.step[id*="guide"] .rating-section {
    background: linear-gradient(135deg, rgba(129, 199, 132, 0.1) 0%, rgba(129, 199, 132, 0.03) 100%);
    border-color: rgba(129, 199, 132, 0.3);
}

.step[id*="guide"] .survey-progress {
    background: linear-gradient(135deg, #81C784, #A5D6A7);
}

.step[id*="transport"] .step-title {
    color: #FFB74D;
}

.step[id*="transport"] .rating-section {
    background: linear-gradient(135deg, rgba(255, 183, 77, 0.1) 0%, rgba(255, 183, 77, 0.03) 100%);
    border-color: rgba(255, 183, 77, 0.3);
}

.step[id*="transport"] .survey-progress {
    background: linear-gradient(135deg, #FFB74D, #FFD54F);
}

.step[id*="food"] .step-title {
    color: #F06292;
}

.step[id*="food"] .rating-section {
    background: linear-gradient(135deg, rgba(240, 98, 146, 0.1) 0%, rgba(240, 98, 146, 0.03) 100%);
    border-color: rgba(240, 98, 146, 0.3);
}

.step[id*="food"] .survey-progress {
    background: linear-gradient(135deg, #F06292, #F48FB1);
}

.step[id*="price"] .step-title {
    color: #BA68C8;
}

.step[id*="price"] .rating-section {
    background: linear-gradient(135deg, rgba(186, 104, 200, 0.1) 0%, rgba(186, 104, 200, 0.03) 100%);
    border-color: rgba(186, 104, 200, 0.3);
}

.step[id*="price"] .survey-progress {
    background: linear-gradient(135deg, #BA68C8, #CE93D8);
}

.rating-label {
    display: block;
    color: var(--primary-gold-light);
    font-weight: 600;
    margin-bottom: 10px;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 8px;
    direction: ltr;
}

.star-rating .star {
    font-size: 65px;
    color: #cfd8dc;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0 5px;
}

.star-rating .star:hover,
.star-rating .star.active {
    color: #FFD700;
    transform: scale(1.2);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.5);
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-gold-light);
    font-size: 0.95rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: #666;
}

.white-placeholder::placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.form-select {
    cursor: pointer;
}

.form-select option {
    background: var(--dark-bg);
    color: var(--text-light);
}

/* Progress Indicator */
.progress-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: var(--primary-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.progress-dot.completed {
    background: var(--primary-green-light);
}

/* Success Page */
.success-container {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.success-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-green-light);
    margin-bottom: 15px;
}

.success-message {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.success-name {
    color: var(--primary-gold);
    font-weight: 700;
}

/* Back Button */
.back-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
    transition: color 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.back-btn:hover {
    color: var(--primary-gold);
}

/* Responsive Design */
@media (max-width: 576px) {
    .contest-card {
        padding: 25px 20px;
        margin: 10px;
    }

    .header h1 {
        font-size: 1.6rem;
    }

    .header-icon {
        font-size: 50px;
    }

    .step-title {
        font-size: 1.2rem;
    }

    .choice-btn {
        padding: 14px 18px;
        font-size: 1rem;
    }
}

/* Kaaba SVG Animation */
.kaaba-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
    }

    to {
        filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.8));
    }
}

/* Loading Spinner */
.spinner {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-primary.loading .spinner {
    display: inline-block;
}



.btn-primary.loading .btn-text {
    display: none;
}

/* Social Buttons Styling */
.social-buttons {
    display: flex;
    flex-direction: row;
    /* Horizontal alignment for desktop */
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.social-btn.facebook {
    background: #1877F2;
    border: 1px solid #1464CC;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border: 1px solid #bc1888;
}

.social-btn.tiktok {
    background: #000000;
    border: 1px solid #333333;
    position: relative;
    overflow: hidden;
}


/* Mobile Exact Match Design */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        /* Prevent horizontal scroll */
    }

    .main-container {
        padding: 15px;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contest-card {
        width: 100%;
        max-width: 100%;
        /* Keep it responsive */
        margin: 0 auto;
        padding: 20px;
        border-radius: 20px;
        box-sizing: border-box;
        /* Include padding in width */
    }

    /* Force buttons to stack vertically on mobile (like image) */
    .social-buttons {
        flex-direction: column !important;
        /* Override desktop row style */
        gap: 12px;
    }

    .social-btn {
        width: 100% !important;
        max-width: none !important;
        /* Remove desktop limits */
        min-width: 0;
        flex: none;
    }

    .header h1 {
        font-size: 1.8rem;
        /* Slightly smaller title for mobile */
    }
}