/* ==========================================
   RESET & BASICS
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#aai-form-notice {
	display: none !important;
}	

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.main-nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 18px;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #667eea;
}

/* ==========================================
   MAIN CONTENT
   ========================================== */
.main-content {
    min-height: calc(100vh - 80px);
}

/* ==========================================
   FOOTER
   ========================================== */
.main-footer {
    background: #2c3e50;
    color: white;
    padding: 40px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: #ecf0f1;
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* ==========================================
   SPLASH PAGE
   ========================================== */
.splash-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.splash-content {
    max-width: 1000px;
    text-align: center;
    color: white;
}

.logo-container {
    margin-bottom: 30px;
}

.splash-logo {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.splash-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.splash-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.info-item svg {
    opacity: 0.9;
}

.splash-description {
    font-size: 20px;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 50px;
    opacity: 0.95;
}

.splash-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.feature p {
    opacity: 0.9;
    font-size: 16px;
}

.splash-cta {
    margin-top: 50px;
}

.splash-note {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.8;
}

/* ==========================================
   TERMS PAGE
   ========================================== */
.terms-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.terms-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.terms-content h1 {
    color: #333;
    margin-bottom: 30px;
}

.terms-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: #667eea;
}

.tab-button.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 15px;
}

.tab-content h3 {
    color: #555;
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 18px;
}

.tab-content p {
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

.terms-actions {
    margin-top: 40px;
    text-align: center;
}

/* ==========================================
   REGISTRATION PAGE
   ========================================== */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.registration-container {
    background: white;
    margin-top: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.page-header {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.page-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.page-header .subtitle {
    font-size: 18px;
    opacity: 0.9;
}

/* Terms notice */
.terms-notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 30px;
}

.checkbox-group {
    margin: 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
    flex-shrink: 0;
}

.checkbox-label a {
    color: #667eea;
    font-weight: 600;
}

/* Messages */
.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 30px;
    font-weight: 500;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Form sections */
#registration-form {
    padding: 30px;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    color: #495057;
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
    display: inline-block;
}

/* Form groups */
.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.required {
    color: #dc3545;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ced4da;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input.error {
    border-color: #dc3545;
}

/* Radio groups */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-group label {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-group label:hover {
    background-color: #f8f9fa;
    border-color: #667eea;
}

.radio-group input[type="radio"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.radio-group input[type="radio"]:checked + span {
    font-weight: 600;
    color: #667eea;
}

/* Transport options */
.transport-option {
    position: relative;
}

.transport-label {
    flex: 1;
}

.capacity {
    display: inline-block;
    margin-left: 10px;
    font-size: 14px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.capacity.available {
    color: #28a745;
    background-color: #d4edda;
}

.capacity.limited {
    color: #d97706;
    background-color: #fff3cd;
}

.capacity.full {
    color: #dc3545;
    background-color: #f8d7da;
}

/* Error messages */
.error-msg {
    display: block;
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    min-height: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

.btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.btn-large {
    padding: 18px 50px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.form-actions {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

/* Select dropdown styling */
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ced4da;
    border-radius: 6px;
    font-size: 16px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10'%3E%3Cpath d='M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group select.error {
    border-color: #dc3545;
}

/* Form notice styling */
.form-notice {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 15px 20px;
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* Info box styling */
.info-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
}

.info-box p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-box a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.info-box a:hover {
    text-decoration: underline;
}

/* Small text helper */
small.text-gray-700 {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #6c757d;
}

/* Transport label improvements */
.transport-label strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.transport-label small {
    display: block;
    color: #666;
    font-size: 13px;
    margin-top: 3px;
}

/* ==================== FOOTER LINKOVI ==================== */

.footer-section a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

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

/* ==================== RESPONSIVE LOGO ==================== */

.nav-logo img {
    height: 50px;
    width: auto;
    transition: height 0.3s;
}

@media (max-width: 768px) {
    .nav-logo img {
        height: 35px; /* Manji logo na mobitelima */
    }
    
    .main-nav {
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .nav-logo img {
        height: 30px; /* Još manji na malim ekranima */
    }
}
   
/* ==================== RESPONSIVE NAVIGATION ==================== */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 5px 0;
    transition: all 0.3s;
    border-radius: 3px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 0;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        width: 100%;
        padding: 10px 0;
        font-size: 16px;
    }
}
   
@media (max-width: 1024px) {
    .form-row-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Splash page */
    .splash-title {
        font-size: 32px;
    }
    
    .splash-description {
        font-size: 16px;
    }
    
    .splash-info {
        flex-direction: column;
        gap: 20px;
    }
    
    /* Navigation */
    .nav-menu {
        gap: 15px;
        font-size: 14px;
    }
    
    .nav-logo span {
        display: none;
    }
    
    /* Terms */
    .terms-content {
        padding: 20px;
    }
    
    .tab-button {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    /* Registration */
    .page-header h1 {
        font-size: 24px;
    }
    
    .page-header .subtitle {
        font-size: 16px;
    }
    
    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .container {
        padding: 10px;
    }
    
    #registration-form {
        padding: 20px;
    }
    
    .terms-notice,
    .message {
        margin: 20px 15px;
    }
    
    .form-section h2 {
        font-size: 20px;
    }
    
    .radio-group label {
        padding: 10px;
    }
    
    .transport-label {
        font-size: 14px;
    }
    
    .capacity {
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .splash-title {
        font-size: 24px;
    }
    
    .splash-features {
        grid-template-columns: 1fr;
    }
    
    .btn-large {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .nav-container {
        padding: 10px 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ==================== FORCE SHOW ERROR MESSAGE ==================== */
#error-message.message.error {
    display: block !important;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
    color: #721c24;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

#error-message[style*="display: none"] {
    display: none !important;
}

#error-text {
    margin: 0;
}

#error-text p {
    margin: 0 0 10px 0;
}

#error-text ul {
    margin: 0;
    padding-left: 25px;
}

#error-text li {
    margin: 5px 0;
    line-height: 1.6;
}

	