/**
 * Registration Page Styles - Optimized
 * Uses utility classes and CSS variables from main.css
 */

/* Page-specific overrides - body padding handled by .pt-nav utility */

/* Header */
.registration-header {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="hero-grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,255,255,0.2)" stroke-width="0.8"/></pattern></defs><rect width="100" height="100" fill="url(%23hero-grid)"/></svg>');
    color: white;
    padding: 2rem 0;
    margin-top: 0;
    position: relative;
    z-index: 1;
    padding-top: 140px; /* Fixed value to ensure visibility */
    min-height: 200px; /* Ensure minimum height */
}

/* Registration Hero - specific styling matching about.html */
.registration-hero {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="hero-grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,255,255,0.15)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23hero-grid)"/></svg>');
    color: white;
    padding: 1rem 0;
    margin-top: 0;
    position: relative;
    z-index: 1;
    padding-top: 110px;
    min-height: 160px;
}

/* Form Sections - using utility classes where possible */
.form-section {
    /* Use card-sobie-lg utility class in HTML instead */
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-2xl);
    margin-bottom: var(--space-lg);
}

/* Registration Type Selection */
.registration-type {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: var(--space-md);
}

.registration-type:hover {
    border-color: var(--sobie-primary);
    background-color: color-mix(in srgb, var(--sobie-primary) 5%, white);
}

.registration-type.selected {
    border-color: var(--sobie-primary);
    background-color: color-mix(in srgb, var(--sobie-primary) 10%, white);
}

/* Attendance Option Cards */
.attendance-option {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid var(--gray-200);
}

.attendance-option:hover {
    border-color: var(--sobie-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.attendance-option.selected {
    border-color: var(--sobie-primary);
    background-color: color-mix(in srgb, var(--sobie-primary) 5%, white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

.attendance-option .form-check-input:checked {
    background-color: var(--sobie-primary);
    border-color: var(--sobie-primary);
}

/* Profile Summary Card Styling */
.profile-summary-card .info-group {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.75rem;
}

.profile-summary-card .info-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-summary-card .field-label {
    font-weight: 500;
}

/* Compact one-line info format */
.info-line {
    display: flex;
    align-items: center;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

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

.info-line strong {
    min-width: 90px;
    font-size: 0.9rem;
    font-weight: 600;
}

.info-line .ms-2 {
    flex: 1;
    color: #495057;
}

/* Compact section styles */
.compact-info-section {
    margin-bottom: 1.5rem;
}

.compact-info-section .section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.compact-info-list {
    padding-left: 0.5rem;
}

/* Payment instructions larger text */
.payment-instructions .fs-5 {
    font-size: 1.1rem !important;
    line-height: 1.6;
    color: #495057;
}

.registration-type input[type="radio"] {
    margin-right: var(--space-sm);
}

/* Fee Display */
.fee-display {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--sobie-primary);
}

/* Student Fields */
.student-type-fields {
    display: none;
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

/* Authentication Required */
.auth-required {
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
}

.auth-required .icon {
    font-size: var(--font-size-4xl);
    color: var(--gray-400);
    margin-bottom: var(--space-md);
}

/* Animations */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Tighter layout - move content closer to hero */
#mainContent {
    margin-top: -30px;
    padding-top: 0.5rem;
}