/* Common Registration Pages Styles */

.page-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    background: transparent;
}

.page-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
    pointer-events: none;
}

.page-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    padding: 2rem;
    animation: fadeInUp 0.8s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    width: 65%;
}

.form-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 65%;
}

.form-header {
    margin-bottom: 2rem;
}

.step-info {
    margin-bottom: 1rem;
}

.step-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 0.5rem;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.progress-bar-container {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #dc3545;
    transition: width 0.3s ease;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-grid.single {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.form-control, .form-select, textarea.form-control {
    background: rgba(30, 30, 60, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus, textarea.form-control:focus {
    background: rgba(30, 30, 60, 0.9);
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
    color: #fff;
    outline: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-control.is-invalid, .form-select.is-invalid {
    border-color: #ff6b6b;
}

.invalid-feedback {
    font-size: 0.85rem;
    color: #ff6b6b;
    margin-top: 0.25rem;
}

.text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.alert {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #fff;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.alert ul {
    padding-left: 1.5rem;
    margin: 0;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4);
}

/* Checkbox/Radio Group Styles */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.85);
}

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.checkbox-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    cursor: pointer;
    width: 20px;
    height: 20px;
    accent-color: #dc3545;
    flex-shrink: 0;
}

.checkbox-label:has(input:checked) {
    background: rgba(220, 53, 69, 0.25);
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.checkbox-label:has(input:checked) span {
    color: #fff;
    font-weight: 700;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .page-content {
        padding: 1.5rem;
    }

    .page-title {
        font-size: 1.75rem;
        width: 80%;
    }

    .form-card {
        padding: 2rem;
        border-radius: 0.875rem;
        width: 80%;
    }

    .step-title {
        font-size: 1.25rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-content {
        padding: 1rem;
    }

    .page-title {
        font-size: 1.5rem;
        width: 95%;
    }

    .form-card {
        padding: 1.25rem;
        border-radius: 0.75rem;
        width: 95%;
    }

    .step-title {
        font-size: 1.1rem;
    }

    .step-label {
        font-size: 0.8rem;
    }
}

/* Upload Zone Styles */
.upload-zone {
    padding: 2rem;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-label {
    color: #dc3545;
    font-weight: 600;
    cursor: pointer;
}

.upload-label:hover {
    text-decoration: underline;
}

/* Consent Group Styles */
.consent-group {
    margin-bottom: 1rem;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.85);
}

.consent-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #dc3545;
    flex-shrink: 0;
}

.consent-label:hover span {
    color: #fff;
}

/* Utility Classes */
.d-none {
    display: none !important;
}

.d-flex {
    display: flex !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.align-items-center {
    align-items: center !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.ms-1 {
    margin-left: 0.25rem !important;
}

.p-3 {
    padding: 1rem !important;
}
