/* =====================================================
   PROFESSIONAL CONFERENCE REGISTRATION STYLES
   13th Deans & Directors Conference
   ===================================================== */

/* Import Professional Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0a2540;
    --primary-light: #1a3a5a;
    --primary-soft: #eef4fc;
    --secondary: #635bff;
    --secondary-light: #e9e8ff;
    --accent: #00b4b3;
    --success: #0d9488;
    --warning: #b45309;
    --danger: #b91c1c;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f6 100%);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    padding: 40px 20px;
}

.registration-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== Professional Header ===== */
.header {
    background: white;
    border-radius: var(--radius-xl);
    padding: 24px 32px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    height: 50px;
    width: auto;
}

.conference-title {
    border-left: 2px solid var(--gray-300);
    padding-left: 20px;
}

.conference-title h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
    line-height: 1.3;
}

.conference-title .dates {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-top: 4px;
}

.contact-info {
    display: flex;
    gap: 30px;
    color: var(--gray-600);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.contact-item i {
    color: var(--secondary);
    font-size: 1.1rem;
}

/* ===== Progress Indicator ===== */
.progress-section {
    background: white;
    border-radius: var(--radius-xl);
    padding: 24px 32px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: var(--gray-200);
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    background: white;
    text-align: center;
    flex: 1;
}

.step-number {
    width: 48px;
    height: 48px;
    background: white;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 600;
    color: var(--gray-500);
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
    box-shadow: 0 0 0 4px var(--secondary-light);
}

.step.completed .step-number {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
}

.step.active .step-label {
    color: var(--secondary);
    font-weight: 600;
}

.progress-bar-container {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    transition: width 0.4s ease;
    border-radius: 3px;
}

/* ===== Main Card ===== */
.registration-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 24px 32px;
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header h2 i {
    font-size: 1.8rem;
    opacity: 0.9;
}

.card-body {
    padding: 32px;
}

/* ===== Form Sections ===== */
.form-section {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.section-title i {
    color: var(--secondary);
    font-size: 1.3rem;
}

.section-title h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

/* ===== Form Elements ===== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-label .required {
    color: var(--danger);
    margin-left: 2px;
}

.form-control, .form-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: white;
    transition: all 0.2s ease;
    color: var(--gray-800);
}

.form-control:hover, .form-select:hover {
    border-color: var(--gray-300);
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px var(--secondary-light);
}

.form-control.is-invalid {
    border-color: var(--danger);
    background-color: #fff5f5;
}

.form-control.is-valid {
    border-color: var(--success);
    background-color: #f0fdf9;
}

.invalid-feedback {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 4px;
    display: none;
}

.valid-feedback {
    color: var(--success);
    font-size: 0.85rem;
    margin-top: 4px;
    display: none;
}

/* ===== Registration Type Cards ===== */
.registration-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.type-card {
    background: white;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.type-card:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.type-card.selected {
    border-color: var(--secondary);
    background: linear-gradient(135deg, #ffffff, var(--secondary-light));
}

.type-card.selected::after {
    content: '✓';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.type-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.type-icon i {
    font-size: 28px;
    color: var(--primary);
}

.type-card.selected .type-icon {
    background: var(--secondary-light);
}

.type-card.selected .type-icon i {
    color: var(--secondary);
}

.type-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.type-description {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.type-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.type-price small {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--gray-500);
}

/* ===== Workshop/Program Cards ===== */
.workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.workshop-card {
    background: white;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.workshop-card:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-md);
}

.workshop-card.selected {
    border-color: var(--secondary);
    background: linear-gradient(135deg, #ffffff, var(--secondary-light));
}

.workshop-card.selected::after {
    content: '✓ Selected';
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--secondary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Conference Card Specific Styles */
.conference-card {
    border-color: var(--primary) !important;
    background: linear-gradient(135deg, #ffffff, var(--primary-soft));
}

.conference-card::before {
    content: '✓ Included';
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
}

.conference-card .workshop-checkbox {
    pointer-events: none;
    opacity: 0.5;
}

.conference-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.conference-badge .badge {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.workshop-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 8px;
    padding-right: 70px;
    margin-top: 30px;
}

.workshop-type {
    margin: 8px 0;
}

.workshop-type .badge {
    background: var(--secondary-light);
    color: var(--secondary);
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.workshop-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.workshop-date i {
    color: var(--secondary);
    font-size: 0.9rem;
}

.workshop-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
}

.original-price {
    color: var(--gray-500);
    text-decoration: line-through;
    font-size: 0.9rem;
}

.discounted-price {
    color: var(--success);
    font-weight: 600;
    font-size: 1.2rem;
}

.workshop-offer {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--gray-600);
    font-style: italic;
}

/* ===== Summary Cards ===== */
.summary-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--gray-200);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.summary-value {
    font-weight: 600;
    color: var(--gray-800);
}

.total-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
}

/* ===== File Upload ===== */
.file-upload-area {
    background: var(--gray-50);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-upload-area:hover {
    border-color: var(--secondary);
    background: var(--secondary-light);
}

.file-upload-area.dragover {
    border-color: var(--secondary);
    background: var(--secondary-light);
    transform: scale(1.02);
}

.file-upload-area i {
    font-size: 48px;
    color: var(--secondary);
    margin-bottom: 12px;
    pointer-events: none;
}

.file-upload-area p {
    color: var(--gray-700);
    margin-bottom: 4px;
    pointer-events: none;
}

.file-upload-area small {
    color: var(--gray-500);
    pointer-events: none;
}

.file-name {
    margin-top: 12px;
    padding: 8px 16px;
    background: var(--secondary-light);
    border-radius: var(--radius-md);
    color: var(--secondary);
    font-weight: 500;
    display: inline-block;
}

/* ===== Sponsor Section ===== */
.sponsor-section {
    background: linear-gradient(135deg, #f0f9ff, #e6f0fa);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 20px;
    border: 1px solid var(--secondary-light);
}

.code-input-group {
    display: flex;
    gap: 12px;
}

.code-input-group input {
    flex: 1;
    padding: 14px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
}

.code-input-group input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px var(--secondary-light);
}

.btn-validate {
    background: var(--primary);
    color: white;
    padding: 0 30px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-validate:hover {
    background: var(--primary-light);
}

.sponsor-info {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 16px;
    border: 1px solid var(--secondary-light);
}

.sponsor-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--secondary-light);
    color: var(--secondary);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== Navigation Buttons ===== */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    gap: 16px;
}

.btn {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--secondary);
    color: white;
}

.btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--gray-700);
    border: 1.5px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.btn-success {
    background: var(--success);
    color: white;
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-success:hover {
    background: #0f766e;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== Alerts ===== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.alert-warning {
    background: #ffedd5;
    border: 1px solid #fed7aa;
    color: #92400e;
}

.alert-info {
    background: var(--secondary-light);
    border: 1px solid #c7d2fe;
    color: var(--secondary);
}

.btn-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    padding: 0 5px;
}

.btn-close:hover {
    opacity: 1;
}

/* ===== Loading Spinner ===== */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.spinner-container {
    background: white;
    padding: 32px 48px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 500px;
    margin: 50px auto;
    box-shadow: var(--shadow-xl);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-area {
        flex-direction: column;
    }
    
    .conference-title {
        border-left: none;
        padding-left: 0;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .progress-steps::before {
        left: 30px;
        right: 30px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .registration-types {
        grid-template-columns: 1fr;
    }
    
    .workshops-grid {
        grid-template-columns: 1fr;
    }
    
    .form-navigation {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .code-input-group {
        flex-direction: column;
    }
    
    .btn-validate {
        padding: 14px;
    }
    
    .card-header h2 {
        font-size: 1.2rem;
    }
    
    .workshop-name {
        font-size: 1rem;
        padding-right: 60px;
    }
    
    .conference-card::before {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .modal-content {
        margin: 20px;
        padding: 20px;
    }
}

/* ===== Print Styles ===== */
@media print {
    .btn, .form-navigation, .file-upload-area, .progress-section, .header, .modal {
        display: none !important;
    }
    
    .registration-card {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* ===== Accessibility ===== */
:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}