/* Registration Form Styles */

.register-container {
    max-width: 700px;
    margin: 2rem auto;
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.15);
}

.register-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.register-header h2 {
    color: var(--navy-blue);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.register-header p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 2rem;
}

.form-section h3 {
    color: var(--navy-blue);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--soft-pink);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--navy-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group small {
    display: block;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

.form-group input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed #e2e8f0;
    background: var(--light-gray);
    cursor: pointer;
}

.form-group input[type="file"]:hover {
    border-color: var(--navy-blue);
    background: var(--white);
}

/* Checkbox Groups */
.checkbox-group {
    margin-bottom: 1rem;
}

.checkbox-group label {
    display: flex;
    align-items: start;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-group a {
    color: var(--navy-blue);
    text-decoration: none;
    font-weight: 500;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Info Box */
.info-box {
    background: #eff6ff;
    border-left: 4px solid var(--navy-blue);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.info-box p {
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
}

.info-box strong {
    color: var(--navy-blue);
}

/* Messages */
.success-message,
.error-message {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: none;
    font-weight: 500;
}

.success-message {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.success-message.show,
.error-message.show {
    display: block;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
}

.form-footer a {
    color: var(--navy-blue);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Submit Button */
.register-container .btn {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .register-container {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }

    .register-header h2 {
        font-size: 1.75rem;
    }

    .form-section h3 {
        font-size: 1.15rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 0.95rem;
        padding: 0.8rem;
    }
}

/* Two Column Layout for Desktop */
@media (min-width: 769px) {
    .register-container {
        max-width: 900px;
    }

    .form-section.two-column {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .form-section.two-column h3 {
        grid-column: 1 / -1;
    }

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

/* Required Field Indicator */
.form-group label::after {
    content: none;
}

.form-group label:has(+ input[required])::before,
.form-group label:has(+ textarea[required])::before,
.form-group label:has(+ select[required])::before {
    content: "";
}

/* File Upload Preview */
.file-preview {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.file-preview-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: var(--white);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.file-preview-item:last-child {
    margin-bottom: 0;
}

.file-preview-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-preview-remove {
    background: #fee2e2;
    color: #991b1b;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-left: 1rem;
}

.file-preview-remove:hover {
    background: #fecaca;
}
