/**
 * Event Registration System - Custom Styles
 * Clean, Modern & Minimal Design
 * Font: Google Font 'Prompt'
 */

/* ==================== Global Styles ==================== */

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

body {
    font-family: 'Prompt', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #FFF8E7 0%, #F5E6D3 100%);
    min-height: 100vh;
}

/* ==================== Navbar ==================== */

.navbar {
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: #B8860B;
}

.nav-link {
    font-weight: 400;
    color: #555;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-link:hover {
    color: #B8860B;
    background-color: rgba(184, 134, 11, 0.05);
}

.nav-link.active {
    color: #B8860B;
    font-weight: 500;
}

.navbar-toggler {
    padding: 0.5rem;
    font-size: 1.25rem;
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ==================== Mobile Menu ==================== */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 1.5rem;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
}

.mobile-menu-header h5 {
    font-weight: 600;
    color: #2c3e50;
}

.btn-close-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.btn-close-menu:hover {
    color: #B8860B;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list li {
    margin-bottom: 0.5rem;
}

.mobile-menu-list a {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 400;
}

.mobile-menu-list a i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.mobile-menu-list a:hover {
    background-color: #FFF8E7;
    color: #B8860B;
}

/* ==================== Page Content ==================== */

.page-content {
    padding-top: 100px;
    padding-bottom: 50px;
    min-height: calc(100vh - 200px);
}

/* ==================== Event Card ==================== */

.event-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
}

.event-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #8B6914 0%, #D4AF37 100%);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

.event-badge i {
    margin-right: 0.5rem;
}

.event-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.event-meta-item {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.95rem;
}

.event-meta-item i {
    margin-right: 0.5rem;
    color: #B8860B;
    font-size: 1.1rem;
}

.event-icon {
    font-size: 5rem;
    color: #D4AF37;
    opacity: 0.2;
}

.event-detail {
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    color: #555;
    line-height: 1.8;
}

/* ==================== Registration Form ==================== */

.registration-form {
    border: none;
    border-radius: 16px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.form-title i {
    color: #B8860B;
    margin-right: 0.5rem;
}

.form-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid #B8860B;
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.2);
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.radio-option {
    flex: 1;
    min-width: 150px;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-weight: 500;
    background: white;
}

.radio-option label i {
    font-size: 1.5rem;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.radio-option label span {
    flex: 1;
}

.radio-option input[type="radio"]:checked + label {
    border-color: #D4AF37;
    background: linear-gradient(135deg, #8B6914 0%, #D4AF37 100%);
    color: white;
}

.radio-option input[type="radio"]:checked + label i {
    opacity: 1;
}

.radio-option label:hover {
    border-color: #D4AF37;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

/* Star Rating */
.rating-container {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #FFF8E7 0%, #F5E6D3 50%, #FFF8E7 100%);
    border-radius: 12px;
}

.star-rating {
    display: inline-flex;
    gap: 0.5rem;
    font-size: 3rem;
}

.star {
    color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-text-stroke: 1px #6B4423;
    text-stroke: 1px #6B4423;
    filter: drop-shadow(0 0 1px #6B4423);
}

.star:hover,
.star.active {
    color: #ffc107;
    transform: scale(1.2);
    -webkit-text-stroke: 1px #6B4423;
    text-stroke: 1px #6B4423;
}

.star.hover {
    color: #ffc107;
    -webkit-text-stroke: 1px #6B4423;
    text-stroke: 1px #6B4423;
}

.rating-text {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #495057;
    min-height: 30px;
}

/* Submit Button */
.btn-primary {
    background: linear-gradient(135deg, #8B6914 0%, #D4AF37 100%);
    border: none;
    border-radius: 50px;
    padding: 0.875rem 2.5rem;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ==================== Success Card ==================== */

.success-card {
    border: none;
    border-radius: 16px;
    animation: fadeInScale 0.6s ease;
    overflow: hidden;
}

.success-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f0f0f0;
}

.success-image-simple {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    object-position: center;
    display: block;
    animation: fadeIn 0.6s ease;
}

.success-icon {
    font-size: 5rem;
    color: #198754;
}

.registration-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.registration-info h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.registration-info p {
    color: #555;
    line-height: 1.8;
}

/* ==================== Footer ==================== */

.footer {
    background: white;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
    border-top: 1px solid #eee;
}

.footer-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    color: #666;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: linear-gradient(135deg, #8B6914 0%, #D4AF37 100%);
    color: white;
    transform: translateY(-3px);
}

/* ==================== Animations ==================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== Responsive Design ==================== */

@media (max-width: 768px) {
    .page-content {
        padding-top: 80px;
    }

    .event-title {
        font-size: 1.5rem;
    }

    .event-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .event-icon {
        font-size: 3rem;
        margin-top: 1rem;
    }

    .radio-group {
        flex-direction: column;
    }

    .radio-option {
        min-width: 100%;
    }

    .star-rating {
        font-size: 2rem;
    }

    .btn-primary {
        width: 100%;
    }

    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }

    .footer {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .event-title {
        font-size: 1.25rem;
    }

    .form-title {
        font-size: 1.25rem;
    }

    .star-rating {
        font-size: 1.75rem;
    }
}

/* ==================== Utilities ==================== */

.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

/* Loading State */
#loadingState {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Invalid Feedback */
.invalid-feedback {
    display: none;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.is-invalid ~ .invalid-feedback,
.is-invalid .invalid-feedback {
    display: block;
}
