/* =====================================================
   Design System - Registration Form Only
===================================================== */

:root {
    /* Primary Colors */
    --agribank-primary: #AF0B35;
    --agribank-dark: #9E2B47;
    --hospital-blue: #2891CC;
    --hospital-blue-dark: #1F7BA6;
    
    /* Accent Colors */
    --teal-accent: #1EE0AC;
    --orange-accent: #E57709;
    
    /* Neutral Scale */
    --black: #000000;
    --charcoal-1: #222222;
    --charcoal-2: #393939;
    --medium-gray: #606060;
    --very-light-gray: #EFEFEF;
    --white: #FFFFFF;
    
    /* Hospital Neutrals */
    --neutral-dark: #333333;
    --neutral-lighter: #F8F9FA;
    
    /* Borders */
    --border-default: #E1E1E1;
    --border-light: #E6E6E6;
    
    /* Semantic Colors */
    --success: #198754;
    --error: #DC3545;
    
    /* Typography */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 20px;
    --space-2xl: 24px;
    --space-3xl: 32px;
    --space-4xl: 48px;
    
    /* Border Radius */
    --radius-md: 5px;
    --radius-lg: 10px;
    --radius-xl: 20px;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: rgba(0, 0, 0, 0.05);
    --shadow-md: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
}

/* =====================================================
   Base Styles
===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--charcoal-1);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =====================================================
   Container
===================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-2xl);
}

/* =====================================================
   Buttons
===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--teal-accent), #00D4AA);
    color: var(--black);
    box-shadow: 0 4px 15px rgba(30, 224, 172, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00D4AA, var(--teal-accent));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 224, 172, 0.5);
}

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

.btn-large {
    padding: var(--space-lg) var(--space-3xl);
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* =====================================================
   Section Styles
===================================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.section-badge.light {
    display: inline-block;
    background: linear-gradient(135deg, var(--teal-accent), #00D4AA);
    color: var(--black);
    padding: var(--space-sm) var(--space-xl);
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-lg);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.section-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* =====================================================
   Registration Section
===================================================== */
.registration {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, var(--charcoal-1) 0%, #1a1a2e 100%);
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.registration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at bottom left, rgba(175, 11, 53, 0.3) 0%, transparent 50%);
}

.registration-wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.form-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.form-row {
    display: grid;
    gap: var(--space-xl);
}

.form-row.two-cols {
    grid-template-columns: 1fr 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    color: var(--charcoal-1);
    margin-bottom: var(--space-sm);
}

.label-icon {
    width: 16px;
    height: 16px;
    color: var(--hospital-blue);
}

.required {
    color: var(--error);
}

.form-input {
    width: 100%;
    height: 48px;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-secondary);
    font-size: 15px;
    color: var(--charcoal-1);
    background: var(--white);
    border: 2px solid var(--border-default);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-input::placeholder {
    color: var(--medium-gray);
}

.form-input:focus {
    outline: none;
    border-color: var(--hospital-blue);
    box-shadow: 0 0 0 4px rgba(40, 145, 204, 0.15);
}

.form-input.error {
    border-color: var(--error);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23606060' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-hint {
    font-size: 12px;
    color: var(--medium-gray);
    margin-top: var(--space-xs);
}

.form-error {
    font-size: 12px;
    color: var(--error);
    margin-top: var(--space-xs);
    min-height: 18px;
}

.form-actions {
    margin-top: var(--space-lg);
}

/* Info Section */
.info-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    backdrop-filter: blur(10px);
}

.info-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.info-icon {
    width: 24px;
    height: 24px;
    color: var(--teal-accent);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.contact-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
}

.contact-value.highlight {
    color: var(--teal-accent);
    font-size: 20px;
}

.contact-value[href] {
    transition: color var(--transition-fast);
}

.contact-value[href]:hover {
    color: var(--hospital-blue);
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: var(--white);
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-item-header {
    font-weight: 600;
    font-size: 13px;
    color: var(--accent);
    padding: var(--space-sm) 0;
    margin-top: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hours-item-header:first-child {
    margin-top: 0;
}

.hours-item.sub-header {
    font-weight: 500;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.trust-badge {
    background: linear-gradient(135deg, rgba(30, 224, 172, 0.1), rgba(30, 224, 172, 0.05));
    border-color: rgba(30, 224, 172, 0.3);
    text-align: center;
}

.trust-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.trust-icon {
    width: 32px;
    height: 32px;
    color: var(--teal-accent);
}

.trust-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--teal-accent);
}

/* =====================================================
   Modal
===================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl);
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-xl);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon.success {
    background: linear-gradient(135deg, var(--success), #20c997);
}

.modal-icon.success svg {
    width: 40px;
    height: 40px;
    color: var(--white);
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--charcoal-1);
    margin-bottom: var(--space-md);
}

.modal-message {
    font-size: 16px;
    color: var(--medium-gray);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

/* =====================================================
   Loading Overlay
===================================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    color: var(--white);
    font-size: 16px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--teal-accent);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =====================================================
   Responsive Design
===================================================== */
@media (max-width: 1024px) {
    .registration-wrapper {
        grid-template-columns: 1fr;
    }
    
    .info-section {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .info-card {
        flex: 1 1 calc(50% - var(--space-md));
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .form-section {
        padding: var(--space-xl);
    }
    
    .form-row.two-cols {
        grid-template-columns: 1fr;
    }
    
    .btn-large {
        padding: var(--space-md) var(--space-xl);
        font-size: 14px;
    }
    
    .info-section {
        flex-direction: column;
    }
    
    .info-card {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 24px;
    }
    
    .form-input {
        height: 44px;
        font-size: 14px;
    }
}
