/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    min-height: 100vh;
    color: #1a202c;
    line-height: 1.6;
}

.main-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Selection Container */
.selection-container {
    width: 100%;
    animation: fadeIn 0.6s ease-out;
}

.selection-header {
    text-align: center;
    margin-bottom: 60px;
    color: rgb(0, 0, 0);
}

.selection-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.selection-header p {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 300;
}

.cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.selection-card {
    background: rgb(214, 193, 193);
    border-radius: 24px;
    padding: 50px 40px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.selection-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.selection-card:hover::before {
    transform: scaleX(1);
}

.selection-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.selection-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-icon svg {
    width: 35px;
    height: 35px;
    color: white;
}

.selection-card h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a202c;
}

.selection-card p {
    font-size: 1rem;
    color: #718096;
    margin-bottom: 20px;
}

.card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f7fafc;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 600;
    color: #667eea;
    transition: all 0.3s ease;
}

.selection-card:hover .card-arrow {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
}

/* Form Container */
.form-container {
    width: 100%;
    animation: fadeIn 0.6s ease-out;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.back-button:hover {
    background: white;
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.back-button svg {
    width: 20px;
    height: 20px;
}

#registerform {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.form-content {
    padding: 50px;
}

.form-header {
    text-align: center;
    margin-bottom: 50px;
}

.form-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-header p {
    font-size: 1.1rem;
    color: #718096;
}

.form-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2d3748;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f7fafc;
}

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

.input-group input::placeholder {
    color: #a0aec0;
}

.input-group select:disabled {
    background: #edf2f7;
    cursor: not-allowed;
    opacity: 0.6;
}

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

/* Consent Group */
.consent-group {
    margin-top: 10px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.consent-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    background: #f7fafc;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.consent-label input[type="checkbox"]:checked ~ .checkmark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.consent-label input[type="checkbox"]:checked ~ .checkmark::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.consent-text {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
}

.consent-text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.consent-text a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Submit Button */
.submit-button {
    margin-top: 10px;
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button svg {
    width: 20px;
    height: 20px;
}

/* Form Visual */
.form-visual {
    position: relative;
    height: 100%;
    min-height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.form-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .form-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-visual {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .main-wrapper {
        padding: 20px;
    }
    
    .selection-header h1 {
        font-size: 2rem;
    }
    
    .selection-header p {
        font-size: 1rem;
    }
    
    .cards-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .selection-card {
        padding: 40px 30px;
    }
    
    .form-content {
        padding: 30px 20px;
    }
    
    .form-header h2 {
        font-size: 1.75rem;
    }
    
    .input-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .form-visual {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .selection-header h1 {
        font-size: 1.75rem;
    }
    
    .selection-card h3 {
        font-size: 1.5rem;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
}