/* Modern Flat Design for ISAG 2026 Registration */

:root {
    --primary-color: #0F3758;
    --secondary-color: #2980b9;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --border-light: #bdc3c7;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Container and Layout */
.main-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Modern Navigation */
.navbar {
    background: var(--white) !important;
    box-shadow: var(--shadow);
    border: none;
    padding: 15px 0;
}

.navbar-brand {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color) !important;
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--secondary-color) !important;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 30px;
}

.breadcrumb-item a {
    color: #0F3758;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
    color: #1a4b6b;
}

/* Modern Card Design */
.registration-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: none;
    overflow: hidden;
    margin-bottom: 30px;
    transition: var(--transition);
}

.registration-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.card-header-modern {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a4b6b 100%);
    color: var(--white);
    padding: 25px 30px;
    border: none;
    margin-bottom: 0;
}

.card-header-modern h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-body-modern {
    padding: 35px;
}

/* Section Headers */
.section-header {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 2px solid var(--light-bg);
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}

.section-header.with-icon {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Modern Form Groups */
.form-group-modern {
    margin-bottom: 25px;
    position: relative;
}

.form-label-modern {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.required-indicator {
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 4px;
}

/* Modern Input Styles */
.form-control-modern {
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 12px 16px;
    font-size: 16px;
    background: var(--white);
    color: var(--text-dark);
    transition: var(--transition);
    width: 100%;
    box-shadow: none;
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 55, 88, 0.1);
    transform: translateY(-1px);
}

.form-control-modern:hover {
    border-color: var(--primary-color);
}

.form-select-modern {
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 12px 16px;
    font-size: 16px;
    background: var(--white);
    color: var(--text-dark);
    transition: var(--transition);
    width: 100%;
    cursor: pointer;
    appearance: none;
    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 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 45px;
}

.form-select-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 55, 88, 0.1);
}

/* Form Text */
.form-text-modern {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 5px;
    font-style: italic;
}

/* Modern Checkboxes */
.form-check-modern {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-check-modern:hover {
    background: #d5dbdb;
}

.form-check-input-modern {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    margin: 0;
    margin-top: 2px;
    cursor: pointer;
    position: relative;
    appearance: none;
    background: var(--white);
    transition: var(--transition);
}

.form-check-input-modern:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input-modern:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
}

.form-check-label-modern {
    font-size: 15px;
    color: var(--text-dark);
    cursor: pointer;
    flex: 1;
    line-height: 1.4;
}

/* Fee Display */
.fee-display {
    background: linear-gradient(135deg, var(--success-color) 0%, #2ecc71 100%);
    color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 25px 0;
    text-align: center;
    box-shadow: var(--shadow);
}

.fee-display h5 {
    margin: 0 0 10px 0;
    font-size: 16px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fee-amount {
    font-size: 32px;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.fee-period {
    font-size: 14px;
    opacity: 0.8;
}

/* Modern Buttons */
.btn-modern {
    background: linear-gradient(135deg, #0F3758 0%, #1a4b6b 100%);
    border: none;
    color: var(--white);
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, #1a4b6b 0%, #0F3758 100%);
    color: var(--white);
}

.btn-modern:active {
    transform: translateY(0);
}

.btn-modern.btn-success {
    background: linear-gradient(135deg, #0F3758 0%, #1a4b6b 100%);
}

.btn-modern.btn-success:hover {
    background: linear-gradient(135deg, #1a4b6b 0%, #0F3758 100%);
}

/* Alert Styles */
.alert-modern {
    border: none;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid;
    box-shadow: var(--shadow);
}

.alert-modern.alert-danger {
    background: #fadbd8;
    border-left-color: var(--accent-color);
    color: #a93226;
}

.alert-modern.alert-info {
    background: #d6eaf8;
    border-left-color: var(--secondary-color);
    color: #1b4f72;
}

.alert-modern.alert-success {
    background: #d5f4e6;
    border-left-color: var(--success-color);
    color: #0e6635;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--light-bg);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
}

.step.active {
    background: var(--secondary-color);
    color: var(--white);
}

.step-number {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--white);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.step.active .step-number {
    background: var(--white);
    color: var(--secondary-color);
}

/* Responsive Grid */
.row-modern {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.row-modern.two-cols {
    grid-template-columns: 1fr 1fr;
}

.row-modern.three-cols {
    grid-template-columns: 2fr 1fr;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-container {
        padding: 15px;
    }
    
    .card-header-modern {
        padding: 20px;
    }
    
    .card-header-modern h2 {
        font-size: 20px;
    }
    
    .card-body-modern {
        padding: 25px 20px;
    }
    
    .row-modern.two-cols,
    .row-modern.three-cols {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        font-size: 18px;
    }
    
    .form-control-modern,
    .form-select-modern {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn-modern {
        width: 100%;
        justify-content: center;
        padding: 18px 35px;
        font-size: 18px;
    }
    
    .fee-amount {
        font-size: 28px;
    }
    
    .progress-steps {
        flex-direction: column;
        gap: 10px;
    }
    
    .step {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 10px;
    }
    
    .card-header-modern {
        padding: 15px;
    }
    
    .card-body-modern {
        padding: 20px 15px;
    }
    
    .fee-amount {
        font-size: 24px;
    }
}

/* Animation classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading state */
.btn-modern.loading {
    position: relative;
    color: transparent;
}

.btn-modern.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--white);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Divider */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
    margin: 30px 0;
}
