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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.text-danger {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

/* Header Styles */
.main-header {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    color: white;
    /* padding: 1rem 0; */
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}
.fest-logo-ct img {
    width: 380px;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="30" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.06)"/><circle cx="90" cy="80" r="2.5" fill="rgba(255,255,255,0.04)"/></svg>') repeat;
    pointer-events: none;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.fest-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.fest-info h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.fest-info p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
    font-weight: 500;
}

.header-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-1px);
}

/* Main Content */
.main-content {
    flex: 1;
}

/* Footer Styles */
.main-footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.footer-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

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

.footer-links a:hover {
    color: #667eea;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fest-logo-ct img {
        width: 340px;
    }
    .container {
        padding: 0 0.75rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .logo-section {
        justify-content: center;
    }

    .fest-info h1 {
        font-size: 1.5rem;
    }

    .header-nav {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .fest-logo {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .fest-info h1 {
        font-size: 1.25rem;
    }

    .fest-info p {
        font-size: 0.875rem;
    }

    .header-nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

.registration-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    margin: 2rem auto;
    max-width: 800px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fest-title {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 25px;
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fest-subtitle {
    color: #6b7280;
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    appearance: none;
}

.file-upload-wrapper {
    position: relative;
    display: block;
}

.file-upload-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    background-color: #f9fafb;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b7280;
    font-weight: 500;
    word-break: break-word;
    text-align: center;
    min-height: 120px;
    overflow: hidden;
}

.file-upload-text {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-upload-label:hover {
    border-color: #667eea;
    background-color: #f0f4ff;
    color: #667eea;
}

.file-upload-icon {
    margin-right: 0.5rem;
    width: 1.25rem;
    height: 1.25rem;
}

.checkbox-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-input {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #667eea;
    cursor: pointer;
}

.checkbox-label {
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radio-input {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #667eea;
    cursor: pointer;
}

.radio-label {
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

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

.required {
    color: #ef4444;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #374151;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

@media (max-width: 768px) {
    .form-card {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }

    .fest-title {
        font-size: 23px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .checkbox-group,
    .radio-group {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .registration-container {
        padding: 1rem 0;
    }

    .form-card {
        margin: 0.5rem;
        padding: 1.5rem 1rem;
    }

    .fest-title {
        font-size: 1.75rem;
    }

    .fest-subtitle {
        font-size: 1rem;
    }
}
/* Basic crop image modal styles start */
.crop-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.crop-modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.crop-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.crop-close:hover {
    color: #000;
}

.crop-container {
    position: relative;
    max-width: 100%;
    margin: 20px 0;
    text-align: center;
}

.crop-image {
    max-width: 100%;
    height: auto;
}

.crop-preview {
    margin: 20px 0;
    text-align: center;
}

.crop-preview h4 {
    margin-bottom: 10px;
    font-size: 16px;
}

.preview-canvas {
    border: 2px solid #ddd;
    border-radius: 4px;
    max-width: 150px;
    max-height: 200px;
}

.crop-buttons {
    text-align: center;
    margin-top: 20px;
}

.crop-btn {
    padding: 8px 20px;
    margin: 0 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.crop-btn-primary {
    background-color: #007bff;
    color: white;
}

.crop-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.crop-btn:hover {
    opacity: 0.8;
}

/* Hidden input for cropped image */
#croppedImageData {
    display: none;
}

/* Cropper.js container */
.cropper-container {
    direction: ltr;
    font-size: 0;
    line-height: 0;
    position: relative;
    touch-action: none;
    user-select: none;
}

.cropper-container img {
    display: block;
    height: 100%;
    image-orientation: 0deg;
    max-height: none;
    max-width: none;
    min-height: 0;
    min-width: 0;
    width: 100%;
}
/* end crop image style */

/* Flash Messages */
.flash-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: 90%;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(10px);
}

.flash-message.show {
    transform: translateX(0);
    opacity: 1;
}

.flash-message.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-left: 4px solid #065f46;
}

.flash-message.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-left: 4px solid #991b1b;
}

.flash-message.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-left: 4px solid #92400e;
}

.flash-message.info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-left: 4px solid #1d4ed8;
}

.flash-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.flash-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.flash-text {
    flex: 1;
    line-height: 1.5;
}

.flash-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.flash-message-text {
    font-weight: 400;
    opacity: 0.95;
    font-size: 0.9rem;
}

.flash-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    flex-shrink: 0;
}

.flash-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

/* Progress bar for auto-dismiss */
.flash-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0 0 12px 12px;
    animation: flash-progress 5s linear forwards;
}

@keyframes flash-progress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Mobile responsiveness for flash messages */
@media (max-width: 768px) {
    .flash-message {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        width: auto;
    }
}

@media (max-width: 480px) {
    .flash-message {
        top: 5px;
        right: 5px;
        left: 5px;
        padding: 0.875rem 1rem;
    }

    .flash-content {
        gap: 0.75rem;
    }

    .flash-icon {
        width: 20px;
        height: 20px;
    }

    .flash-title {
        font-size: 0.95rem;
    }

    .flash-message-text {
        font-size: 0.85rem;
    }
}
