/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ecae0f;
    --text-color: #0e0d0d;
    --secondary-color: #ff6b35;
    --accent-color: #ff8c42;
    --text-color: #2d2d2d;
    --light-bg: #fff5f0;
    --white: #ffffff;
    --body-bg: #fef8f5;
    --hero-body-bg: #fef8f54f;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--body-bg);
    position: relative;
    -webkit-text-size-adjust: 100%; /* Prevent text scaling on iOS */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/bgdesign.png');
    background-repeat: repeat;
    background-size: 700px 700px;
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Improved touch targets for mobile */
a, button, .btn-primary, .reg-btn {
    min-height: 44px; /* Apple's recommended minimum touch target */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Better focus states for accessibility */
a:focus, button:focus, input:focus, select:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Header Styles */
.main-header {
    background: var(--primary-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 110px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: 5px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--white);
    background: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
}

/* Hero Slideshow */
.hero-slideshow {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slideshow-container {
    position: relative;
    height: 600px;
}

.slide {
    display: none;
    position: relative;
    height: 100%;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    background: rgba(0,0,0,0.5);
    padding: 40px 60px;
    border-radius: 10px;
}

.slide-caption h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.slide-caption p {
    font-size: 1.3rem;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: var(--white);
    font-weight: bold;
    font-size: 24px;
    background: rgba(0,0,0,0.5);
    border-radius: 5px;
    transition: var(--transition);
    user-select: none;
}

.prev:hover, .next:hover {
    background: rgba(0,0,0,0.8);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.dots-container {
    text-align: center;
    padding: 20px;
    background: var(--light-bg);
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: var(--transition);
}

.dot.active, .dot:hover {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

.fade {
    animation: fadeIn 1s;
}

@keyframes fadeIn {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Milap Section */
.milap-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ff6b3510 0%, #ff8c4210 100%);
}

.milap-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.milap-text h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.milap-text p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.8;
}

.milap-image img {
    width: 65%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: var(--transition);
    font-weight: 600;
}

.btn-primary:hover {
    background: #e55a28;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* Hero Slider (Milap Page) */
.hero-slider {
    position: relative;
    width: auto;
    height: 500px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slider-slide {
    display: none;
    height: 100%;
}

.slider-slide.active {
    display: block;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Registration Section */
.registration-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a05 0%, #ff6b3508 100%);
    text-align: center;
}

.registration-title {
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 60px;
}

.registration-buttons {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.reg-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 280px;
    height: 200px;
    text-decoration: none;
    border-radius: 15px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.reg-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: var(--transition);
}

.reg-btn:hover::before {
    left: 100%;
}

.club-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.individual-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: var(--white);
}

.entry-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: var(--white);
}

.reg-btn:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.btn-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

.reg-btn:hover .btn-icon {
    animation: spin 0.6s ease;
}

.btn-text {
    font-size: 1.3rem;
    font-weight: 600;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Contact Hero */
.contact-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.contact-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay h1 {
    color: var(--white);
    font-size: 3.5rem;
}

/* Contact Details */
.contact-details {
    padding: 80px 0;
    background: linear-gradient(135deg, #ff8c4208 0%, #1a1a1a05 100%);
}

.contact-details h2 {
    text-align: center;
    font-size: 2.0 rem;
    color: var(--text-color);
    margin-bottom: 50px;
}

.contact-table-wrapper {
    overflow-x: auto;
}

.contact-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
}

.contact-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d2d2d 100%);
    color: var(--white);
}

.contact-table th,
.contact-table td {
    padding: 20px;
    text-align: left;
}

.contact-table th {
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-table tbody tr {
    border-bottom: 1px solid #ddd;
    transition: var(--transition);
}

.contact-table tbody tr:hover {
    background: var(--light-bg);
}

.contact-table tbody tr:last-child {
    border-bottom: none;
}

/* Footer */
.main-footer {
    background: var(--text-color);
    color: var(--white);
    padding: 40px 0;
    margin-top: 80px;
}

.footer-content {
    text-align: center;
}

.footer-content-dev {
    text-align: right;
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-social {
    margin-bottom: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    margin: 0 10px;
    background: #7e3002;
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.footer-copyright p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Mobile Navigation Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.main-nav.mobile-active {
    display: block !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .milap-content {
        gap: 30px;
    }
    
    .milap-text h2 {
        font-size: 2.2rem;
    }
    
    .registration-buttons {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* Header Mobile Styles */
    .mobile-menu-toggle {
        display: flex;
    }

    .header-content {
        flex-wrap: wrap;
        position: relative;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        box-shadow: var(--shadow);
        border-radius: 0 0 10px 10px;
        z-index: 1000;
        width: 100%;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }

    .main-nav li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: block;
        padding: 15px 20px;
        border-radius: 0;
        width: 100%;
    }

    /* Logo adjustments */
    .logo img {
        height: 80px;
    }

    /* Hero Section Mobile */
    .slideshow-container {
        height: 400px;
    }

    .slide-caption {
        padding: 20px 30px;
        width: 90%;
        max-width: none;
    }

    .slide-caption h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .slide-caption p {
        font-size: 1rem;
    }

    .prev, .next {
        padding: 12px;
        font-size: 18px;
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }

    /* Hero Slider Mobile */
    .hero-slider {
        height: 350px;
    }

    /* Milap Section Mobile */
    .milap-section {
        padding: 50px 0;
    }

    .milap-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .milap-text h2 {
        font-size: 2rem;
    }

    .milap-text p {
        font-size: 1rem;
    }

    .milap-image {
        order: -1;
    }

    .milap-image img {
        width: 100%;
        max-width: 400px;
    }

    /* Registration Section Mobile */
    .registration-section {
        padding: 50px 0;
    }

    .registration-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .registration-buttons {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }

    .reg-btn {
        width: 100%;
        max-width: 280px;
        height: 160px;
    }

    .btn-icon {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .btn-text {
        font-size: 1.1rem;
    }

    /* Contact Hero Mobile */
    .contact-hero {
        height: 300px;
    }

    .hero-overlay h1 {
        font-size: 2.5rem;
    }

    /* Contact Details Mobile */
    .contact-details {
        padding: 50px 0;
    }

    .contact-details h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .contact-table th,
    .contact-table td {
        padding: 15px 10px;
        font-size: 0.9rem;
    }

    /* Footer Mobile */
    .main-footer {
        padding: 30px 0;
        margin-top: 50px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        margin: 0 8px;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .container {
        padding: 0 10px;
    }

    /* Header */
    .logo img {
        height: 70px;
    }

    .main-nav a {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    /* Hero adjustments */
    .slideshow-container {
        height: 300px;
    }

    .slide-caption {
        padding: 15px 20px;
    }

    .slide-caption h1 {
        font-size: 1.5rem;
    }

    .slide-caption p {
        font-size: 0.9rem;
    }

    .hero-slider {
        height: 250px;
    }

    /* Sections */
    .milap-section,
    .registration-section,
    .contact-details {
        padding: 40px 0;
    }

    .milap-text h2 {
        font-size: 1.8rem;
    }

    .registration-title {
        font-size: 1.8rem;
    }

    .reg-btn {
        height: 140px;
        max-width: 260px;
    }

    .btn-icon {
        font-size: 2rem;
    }

    .btn-text {
        font-size: 1rem;
    }

    /* Contact */
    .hero-overlay h1 {
        font-size: 2rem;
    }

    .contact-details h2 {
        font-size: 1.6rem;
    }

    .contact-table th,
    .contact-table td {
        padding: 12px 8px;
        font-size: 0.85rem;
    }

    /* Contact info grid */
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-item {
        padding: 20px 15px;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
    }

    .contact-icon i {
        font-size: 1.3rem;
    }

    .contact-text h3 {
        font-size: 1.1rem;
    }

    .contact-text p {
        font-size: 0.9rem;
    }
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s;
}

.modal-large {
    max-width: 800px;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--secondary-color);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.terms-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 10px;
    margin: 20px 0;
}

.terms-content ul {
    list-style: none;
    padding-left: 0;
}

.terms-content li {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.terms-content li:before {
    content: "✓ ";
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 10px;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.btn-reject,
.btn-accept,
.btn-close,
.btn-download,
.btn-pay,
.btn-submit {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-reject {
    background: #95a5a6;
    color: var(--white);
}

.btn-reject:hover {
    background: #7f8c8d;
}

.btn-accept,
.btn-download,
.btn-submit {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-accept:hover,
.btn-download:hover,
.btn-submit:hover {
    background: #e55a28;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.btn-close {
    background: var(--primary-color);
    color: var(--white);
}

.btn-close:hover {
    background: #2d2d2d;
}

.btn-pay {
    background: #27ae60;
    color: var(--white);
    width: 100%;
    margin-top: 10px;
}

.btn-pay:hover:not(:disabled) {
    background: #229954;
}

.btn-pay:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    -webkit-appearance: none; /* Remove default styling on iOS */
    appearance: none;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group input[readonly] {
    background: var(--light-bg);
    cursor: not-allowed;
}

/* Improve select dropdown on mobile */
.form-group select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* File input styling */
.form-group input[type="file"] {
    padding: 8px;
    border: 2px dashed #ddd;
    background: var(--light-bg);
    cursor: pointer;
}

.form-group input[type="file"]:hover {
    border-color: var(--secondary-color);
}

/* Number input improvements for mobile */
.form-group input[type="number"] {
    -moz-appearance: textfield; /* Remove spinner on Firefox */
}

.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none; /* Remove spinner on Chrome/Safari */
    margin: 0;
}

.total-amount-box {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
}

.total-amount-box label {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.total-amount-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

.total-amount-display .currency {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
}

.total-amount-display .amount {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.qr-section {
    text-align: center;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 10px;
}

.payment-qr {
    max-width: 250px;
    height: auto;
    margin: 15px 0;
    border: 3px solid var(--secondary-color);
    border-radius: 10px;
}

/* Success Modal Animation */
.modal-success {
    text-align: center;
}

.success-animation {
    margin: 20px 0;
}

.checkmark-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.checkmark {
    width: 40px;
    height: 70px;
    border: solid var(--white);
    border-width: 0 8px 8px 0;
    transform: rotate(45deg);
    animation: checkmark 0.5s ease 0.3s forwards;
    opacity: 0;
}

@keyframes checkmark {
    to {
        opacity: 1;
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-large {
        max-width: 95%;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-reject,
    .btn-accept,
    .btn-close,
    .btn-download,
    .btn-submit {
        width: 100%;
        padding: 15px;
        font-size: 1rem;
    }

    .terms-content {
        max-height: 250px;
        padding: 15px;
    }

    .form-group input,
    .form-group select {
        padding: 15px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .form-group label {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .total-amount-box {
        padding: 15px;
        margin: 15px 0;
    }

    .total-amount-display .amount {
        font-size: 2rem;
    }

    .payment-qr {
        max-width: 200px;
    }

    .qr-section {
        padding: 15px;
    }

    .checkmark-circle {
        width: 80px;
        height: 80px;
    }

    .checkmark {
        width: 30px;
        height: 50px;
        border-width: 0 6px 6px 0;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 2% auto;
        padding: 15px;
        border-radius: 10px;
    }

    .modal-content h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .terms-content {
        max-height: 200px;
        padding: 12px;
        font-size: 0.9rem;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group input,
    .form-group select {
        padding: 12px 10px;
    }

    .total-amount-box {
        padding: 12px;
    }

    .total-amount-display .currency {
        font-size: 1.2rem;
    }

    .total-amount-display .amount {
        font-size: 1.8rem;
    }

    .payment-qr {
        max-width: 180px;
    }

    .btn-reject,
    .btn-accept,
    .btn-close,
    .btn-download,
    .btn-submit {
        padding: 12px;
        font-size: 0.95rem;
    }
}


/* Fixed Amount Display */
.fixed-amount {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}


/* Download Pass Form Styles */
#downloadPassForm small {
    font-size: 0.85rem;
}

#downloadPassForm input {
    text-transform: uppercase;
}


/* Hero Section (Single Image) */
.hero-section {
    width: 100%;
    padding: 40px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hero-body-bg);
    position: relative;
}



.hero-section img {
    max-width: 80%;
    max-height: 500px;
    height: auto;
    width: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .hero-section {
        padding: 20px 0;
    }
    
    .hero-section img {
        max-width: 90%;
        max-height: 350px;
    }
}

/* Contact Info Section */
.contact-info {
    padding: 60px 0;
    background: var(--hero-body-bg);
}

.contact-info h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 50px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.contact-text h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.contact-text p {
    margin: 5px 0;
}

.contact-text a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-text a:hover {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-item {
        padding: 20px;
    }
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    /* Improve scrolling performance */
    * {
        -webkit-overflow-scrolling: touch;
    }

    /* Better button spacing for touch */
    .btn-primary,
    .reg-btn,
    .btn-accept,
    .btn-reject,
    .btn-close,
    .btn-download,
    .btn-submit,
    .btn-pay {
        min-height: 48px;
        padding: 12px 20px;
        font-size: 1rem;
        touch-action: manipulation; /* Prevent double-tap zoom */
    }

    /* Improve table scrolling on mobile */
    .contact-table-wrapper {
        -webkit-overflow-scrolling: touch;
        border-radius: 10px;
    }

    /* Better spacing for mobile content */
    .milap-section,
    .registration-section,
    .contact-details,
    .contact-info {
        padding: 40px 0;
    }

    /* Improve image loading on mobile */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* Better modal positioning on mobile */
    .modal {
        padding: 10px;
    }

    /* Improve form validation messages */
    .form-group small {
        display: block;
        margin-top: 5px;
        font-size: 0.85rem;
        color: #666;
    }

    /* Better error states */
    .form-group input.error,
    .form-group select.error {
        border-color: #e74c3c;
        box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    }

    /* Loading states */
    .loading {
        opacity: 0.6;
        pointer-events: none;
        position: relative;
    }

    .loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
        border: 2px solid #f3f3f3;
        border-top: 2px solid var(--secondary-color);
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
}

/* Landscape orientation improvements */
@media (max-width: 768px) and (orientation: landscape) {
    .slideshow-container,
    .hero-slider {
        height: 250px;
    }

    .slide-caption {
        padding: 15px 25px;
    }

    .slide-caption h1 {
        font-size: 1.5rem;
    }

    .slide-caption p {
        font-size: 0.9rem;
    }

    .modal-content {
        max-height: 85vh;
        overflow-y: auto;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp images on retina displays */
    .logo img,
    .milap-image img,
    .hero-section img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode support (if user prefers) */
@media (prefers-color-scheme: dark) {
    /* This is optional - you can implement dark mode if needed */
    /* For now, we'll keep the existing light theme */
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .slideshow-container,
    .hero-slider {
        /* Disable auto-sliding for users who prefer reduced motion */
    }
}

/* Print styles */
@media print {
    .main-header,
    .main-footer,
    .mobile-menu-toggle,
    .prev,
    .next,
    .dots-container {
        display: none !important;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    body {
        background: white;
        color: black;
    }
    
    body::before {
        display: none;
    }
}
/* Mobile device specific styles */
.mobile-device {
    /* Optimize for mobile performance */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.touch-device {
    /* Improve touch interactions */
}

.touch-device .reg-btn:hover,
.touch-device .btn-primary:hover,
.touch-device .social-icon:hover {
    /* Remove hover effects on touch devices */
    transform: none;
    box-shadow: var(--shadow);
}

/* Improve loading states */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

/* Better error states */
.form-group input.error,
.form-group select.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Improve image loading */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Better modal backdrop on mobile */
@media (max-width: 768px) {
    .modal {
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }
    
    /* Prevent zoom on input focus for iOS */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }
    
    /* Better button spacing for touch */
    .modal-buttons {
        gap: 15px;
        padding-top: 20px;
    }
    
    /* Improve table responsiveness */
    .contact-table-wrapper {
        border-radius: 10px;
        box-shadow: var(--shadow);
    }
    
    .contact-table {
        font-size: 14px;
    }
    
    .contact-table th,
    .contact-table td {
        min-width: 100px;
        white-space: nowrap;
    }
    
    /* Better hero section on mobile */
    .hero-section {
        padding: 20px 0;
    }
    
    .hero-section img {
        max-width: 95%;
        border-radius: 10px;
    }
    
    /* Improve registration buttons layout */
    .registration-buttons {
        padding: 0 10px;
    }
    
    .reg-btn {
        margin-bottom: 15px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    /* Better contact info layout */
    .contact-info-grid {
        padding: 0 10px;
    }
    
    /* Improve footer on mobile */
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-content-dev {
        text-align: center;
        order: 3;
    }
    
    .footer-copyright {
        order: 2;
    }
    
    .footer-social {
        order: 1;
    }
}

/* Very small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    .container {
        padding: 0 8px;
    }
    
    .logo img {
        height: 60px;
    }
    
    .slideshow-container,
    .hero-slider {
        height: 250px;
    }
    
    .slide-caption {
        padding: 10px 15px;
    }
    
    .slide-caption h1 {
        font-size: 1.3rem;
    }
    
    .slide-caption p {
        font-size: 0.8rem;
    }
    
    .milap-text h2 {
        font-size: 1.6rem;
    }
    
    .registration-title {
        font-size: 1.6rem;
    }
    
    .reg-btn {
        height: 120px;
        max-width: 240px;
    }
    
    .btn-icon {
        font-size: 1.8rem;
    }
    
    .btn-text {
        font-size: 0.9rem;
    }
    
    .contact-table th,
    .contact-table td {
        padding: 8px 6px;
        font-size: 0.8rem;
    }
    
    .modal-content {
        padding: 12px;
        margin: 5% auto;
    }
    
    .modal-content h2 {
        font-size: 1.3rem;
    }
}

/* Landscape mode optimizations */
@media (max-height: 500px) and (orientation: landscape) {
    .slideshow-container,
    .hero-slider {
        height: 200px;
    }
    
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .slide-caption {
        padding: 10px 20px;
    }
    
    .slide-caption h1 {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }
    
    .slide-caption p {
        font-size: 0.8rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
    
    .btn-primary,
    .reg-btn,
    .btn-accept,
    .btn-submit {
        border: 2px solid currentColor;
    }
}

/* Reduced data mode (if supported in future) */
@media (prefers-reduced-data: reduce) {
    body::before {
        background-image: none;
    }
    
    .hero-section img,
    .milap-image img {
        /* Could implement lower quality images here */
    }
}

/* Success Modal Animations */
.success-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #27ae60;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: scaleIn 0.5s ease-in-out;
}

.checkmark {
    width: 30px;
    height: 15px;
    border-left: 4px solid white;
    border-bottom: 4px solid white;
    transform: rotate(-45deg);
    opacity: 0;
    animation: checkmark 0.6s ease-in-out 0.3s forwards;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkmark {
    0% {
        opacity: 0;
        transform: rotate(-45deg) scale(0);
    }
    50% {
        opacity: 1;
        transform: rotate(-45deg) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: rotate(-45deg) scale(1);
    }
}

/* Modal Success Styles */
.modal-success {
    text-align: center;
    padding: 40px 30px;
}

.modal-success h2 {
    color: #27ae60;
    margin: 20px 0 10px 0;
    font-size: 28px;
}

.modal-success p {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-close {
    background: #6c757d;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.btn-close:hover {
    background: #5a6268;
}

.btn-download {
    background: #27ae60;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.btn-download:hover {
    background: #219a52;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.4);
}

/* Success Details Styling */
#successDetails {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

#successDetails h4 {
    color: #27ae60;
    margin-bottom: 15px;
    font-size: 18px;
}

#successDetails p {
    margin: 8px 0;
    color: #495057;
    font-size: 14px;
}

#successDetails strong {
    color: #212529;
    font-weight: 600;
}