/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #d4af37;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Touch-friendly improvements */
* {
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
}

input, select, textarea, button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(26, 35, 50, 0.95);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Banner Section */
.banner-section {
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.banner-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.banner-image:hover img {
    transform: scale(1.05);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.7) 0%, rgba(44, 62, 80, 0.5) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.banner-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: 2px;
}

.banner-subtitle {
    font-size: 18px;
    color: #d4af37;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Responsive Banner */
@media (max-width: 768px) {
    .banner-image {
        height: 250px;
    }
    
    .banner-title {
        font-size: 28px;
    }
    
    .banner-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .banner-image {
        height: 200px;
    }
    
    .banner-title {
        font-size: 24px;
    }
    
    .banner-subtitle {
        font-size: 14px;
    }
    
    .banner-overlay {
        padding: 15px;
    }
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: linear-gradient(45deg, #2c3e50, #34495e);
    border-radius: 15px;
    border: 3px solid #d4af37;
    position: relative;
    overflow: hidden;
}

.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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23d4af37" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23d4af37" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23d4af37" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.logo-section {
    position: relative;
    z-index: 2;
}

.logo-circle {
    width: 200px;
    height: 200px;
    border: 4px solid #d4af37;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    position: relative;
}

.logo-circle::before {
    content: '🏍️';
    position: absolute;
    top: 20px;
    font-size: 30px;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.logo-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 400;
    color: #d4af37;
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.established {
    font-size: 12px;
    color: #d4af37;
    opacity: 0.8;
    letter-spacing: 1px;
}

.event-info {
    position: relative;
    z-index: 2;
}

.event-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.event-dates {
    font-size: 20px;
    color: #d4af37;
    margin-bottom: 10px;
    font-weight: 600;
}

.route-info {
    font-size: 16px;
    color: #d4af37;
    opacity: 0.9;
    font-style: italic;
}

/* Form Styles */
.registration-form {
    background: rgba(44, 62, 80, 0.8);
    border-radius: 15px;
    padding: 30px;
    border: 2px solid #d4af37;
}

.form-section {
    margin-bottom: 40px;
    background: rgba(26, 35, 50, 0.6);
    border-radius: 12px;
    padding: 25px;
    border-left: 5px solid #d4af37;
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #d4af37;
}

.section-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #d4af37;
    margin-right: 15px;
    font-weight: 600;
}

.section-icon {
    font-size: 24px;
    background: #d4af37;
    color: #1a2332;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #d4af37;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #d4af37;
    border-radius: 8px;
    background: rgba(26, 35, 50, 0.8);
    color: #ffffff;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f4d03f;
    background: rgba(26, 35, 50, 0.9);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

/* Ensure options in dropdowns are readable */
.form-group select option {
	color: #1a2332; /* dark text inside native dropdown list */
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.6;
    color: #d4af37;
    gap: 12px;
    padding: 4px 0;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 5px;
    height: 0px;
    min-width: 0px;
    min-height: 0px;
    border: 2px solid #d4af37;
    border-radius: 4px;
    position: relative;
    background: rgba(26, 35, 50, 0.9);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.checkbox-label:hover .checkmark {
    border-color: #f4d03f;
    box-shadow: 0 0 0 2px rgba(244, 208, 63, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.checkbox-label:focus-within .checkmark {
    outline: 2px solid rgba(244, 208, 63, 0.5);
    outline-offset: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #d4af37;
    border-color: #d4af37;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #1a2332;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
}

/* Event Details Content */
.event-details-content {
    background: rgba(26, 35, 50, 0.4);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #d4af37;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.detail-item {
    background: rgba(44, 62, 80, 0.6);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #d4af37;
}

.detail-item h4 {
    color: #d4af37;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-item ul {
    margin-left: 20px;
}

.detail-item li {
    color: #d4af37;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.detail-item li strong {
    color: #f4d03f;
    font-weight: 600;
}

/* Timeline Section */
.timeline-section {
    margin-top: 30px;
}

.timeline-section h4 {
    color: #d4af37;
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #d4af37, #f4d03f);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.timeline-marker {
    position: absolute;
    left: -22px;
    top: 0;
    width: 30px;
    height: 30px;
    background: #d4af37;
    color: #1a2332;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    z-index: 2;
    border: 3px solid #1a2332;
}

.timeline-content {
    background: rgba(44, 62, 80, 0.6);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #d4af37;
    flex: 1;
}

.timeline-content h5 {
    color: #f4d03f;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.timeline-content p {
    color: #d4af37;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.timeline-content p strong {
    color: #f4d03f;
    font-weight: 600;
}

/* Responsive Event Details */
@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .timeline {
        padding-left: 25px;
    }
    
    .timeline-marker {
        left: -17px;
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    
    .timeline-content {
        padding: 15px;
    }
}

/* Terms Content */
.terms-content {
    background: rgba(26, 35, 50, 0.4);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #d4af37;
}

.terms-content h4 {
    color: #d4af37;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.terms-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.terms-content li {
    color: #d4af37;
    margin-bottom: 5px;
    font-size: 14px;
}

/* Submit Section */
.submit-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #d4af37;
}

.submit-btn {
    background: linear-gradient(45deg, #d4af37, #f4d03f);
    color: #1a2332;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    background: linear-gradient(45deg, #f4d03f, #d4af37);
}

.submit-btn:active {
    transform: translateY(0);
}

.registration-note {
    margin-top: 15px;
    font-size: 14px;
    color: #d4af37;
    opacity: 0.8;
    font-style: italic;
}

/* Footer */
.footer {
    margin-top: 40px;
    text-align: center;
    padding: 20px 0;
    border-top: 2px solid #d4af37;
}

.footer-content p {
    color: #d4af37;
    font-size: 14px;
    margin-bottom: 5px;
    opacity: 0.8;
}

.footer-links {
    margin-top: 8px;
}

.footer-links a {
    color: #f4d03f;
    text-decoration: none;
    margin: 0 6px;
    font-size: 14px;
}

.footer-links a:hover { text-decoration: underline; }
.footer-links .sep { color: #d4af37; opacity:.6; }

.gateway-note {
    margin-top: 8px;
    font-size: 12px;
    color: #d4af37;
    opacity: .8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        max-width: 95%;
        margin: 15px auto;
    }
    
    .detail-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .header {
        padding: 25px 15px;
    }
    
    .logo-circle {
        width: 150px;
        height: 150px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .logo-subtitle {
        font-size: 16px;
    }
    
    .event-title {
        font-size: 24px;
    }
    
    .event-dates {
        font-size: 18px;
    }
    
    .route-info {
        font-size: 15px;
    }
    
    .registration-form {
        padding: 20px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .section-header h3 {
        font-size: 20px;
    }
    
    .banner-image {
        height: 250px;
    }
    
    .banner-title {
        font-size: 28px;
    }
    
    .banner-subtitle {
        font-size: 16px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .submit-btn {
        padding: 12px 30px;
        font-size: 16px;
        width: 100%;
        max-width: 300px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .footer-links a {
        font-size: 12px;
        margin: 0 4px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .container {
        margin: 5px;
        padding: 10px;
    }
    
    .header {
        padding: 20px 10px;
    }
    
    .logo-circle {
        width: 120px;
        height: 120px;
    }
    
    .logo-circle::before {
        font-size: 24px;
        top: 15px;
    }
    
    .logo-text {
        font-size: 16px;
        letter-spacing: 1px;
    }
    
    .logo-subtitle {
        font-size: 14px;
        letter-spacing: 2px;
    }
    
    .established {
        font-size: 10px;
    }
    
    .event-title {
        font-size: 20px;
    }
    
    .event-dates {
        font-size: 16px;
    }
    
    .route-info {
        font-size: 14px;
    }
    
    .banner-image {
        height: 200px;
    }
    
    .banner-overlay {
        padding: 15px;
    }
    
    .banner-title {
        font-size: 24px;
    }
    
    .banner-subtitle {
        font-size: 14px;
    }
    
    .registration-form {
        padding: 15px;
    }
    
    .form-section {
        padding: 15px;
        margin-bottom: 25px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-header h3 {
        font-size: 18px;
        margin-right: 0;
    }
    
    .section-icon {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
    
    /* Prevent iOS zoom on input focus */
    @supports (-webkit-touch-callout: none) {
        .form-group input[type="text"],
        .form-group input[type="email"],
        .form-group input[type="tel"],
        .form-group input[type="number"],
        .form-group input[type="date"],
        .form-group select,
        .form-group textarea {
            font-size: 16px;
        }
    }
    
    .checkbox-label {
        font-size: 14px;
        gap: 10px;
    }
    
    .checkmark {
        width: 10px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
    }
    
    .checkbox-label input[type="checkbox"]:checked + .checkmark::after {
        font-size: 12px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .detail-item {
        padding: 15px;
    }
    
    .detail-item h4 {
        font-size: 16px;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-marker {
        left: -15px;
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
    
    .timeline-content {
        padding: 12px;
    }
    
    .timeline-content h5 {
        font-size: 14px;
    }
    
    .timeline-content p {
        font-size: 13px;
    }
    
    .terms-content {
        padding: 15px;
    }
    
    .terms-content h4 {
        font-size: 15px;
    }
    
    .terms-content li {
        font-size: 13px;
    }
    
    .submit-btn {
        padding: 12px 25px;
        font-size: 15px;
        width: 100%;
    }
    
    .registration-note {
        font-size: 12px;
        padding: 0 10px;
    }
    
    .footer {
        padding: 15px 10px;
    }
    
    .footer-content p {
        font-size: 12px;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .footer-links .sep {
        display: none;
    }
    
    .footer-links a {
        font-size: 11px;
        margin: 0;
        display: block;
    }
    
    .gateway-note {
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .container {
        margin: 5px;
        padding: 8px;
    }
    
    .logo-circle {
        width: 100px;
        height: 100px;
    }
    
    .logo-text {
        font-size: 14px;
    }
    
    .event-title {
        font-size: 18px;
    }
    
    .form-section {
        padding: 12px;
    }
    
    .submit-btn {
        font-size: 14px;
        padding: 10px 20px;
    }
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section {
    animation: fadeInUp 0.6s ease-out;
}

.form-section:nth-child(2) { animation-delay: 0.1s; }
.form-section:nth-child(3) { animation-delay: 0.2s; }
.form-section:nth-child(4) { animation-delay: 0.3s; }
.form-section:nth-child(5) { animation-delay: 0.4s; }
.form-section:nth-child(6) { animation-delay: 0.5s; }

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a2332;
}

::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f4d03f;
}

/* Accessible, high-contrast checkbox enhancements */
.checkbox-label {
    align-items: center;
    gap: 14px;
    font-size: 18px;
    line-height: 1.6;
}

.checkmark {
    width: 40px; /* larger box to match reference */
    height: 40px;
    border: 4px solid #f4d03f;
    border-radius: 4px; /* square with slight rounding */
    background: rgba(26, 35, 50, 0.95);
    box-shadow: inset 0 0 0 2px rgba(0,0,0,0.35);
}

.checkbox-label:hover .checkmark {
    border-color: #ffd95e;
    box-shadow: 0 0 0 5px rgba(244, 208, 63, 0.25), inset 0 0 0 2px rgba(0,0,0,0.35);
}

/* Keyboard focus ring */
.checkbox-label:focus-within .checkmark {
    outline: 4px solid rgba(244, 208, 63, 0.55);
    outline-offset: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    font-size: 26px; /* bigger tick */
}
