/* ===== REGISTRATION PAGE STYLES ===== */

/* Registration Header */
.registration-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 6rem 0 3rem;
    text-align: center;
    color: white;
}

.header-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.header-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Registration Section */
.registration-section {
    padding: 4rem 0;
    background-color: var(--background-alt);
}

.registration-container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2.5rem;
}

/* Form Container */
.form-container {
    background-color: var(--background);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.registration-form {
    padding: 2.5rem;
}

/* Form Progress */
.form-progress {
    margin-bottom: 2.5rem;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    width: 100%;
    height: 2px;
    background-color: var(--border);
    left: 50%;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--background);
    color: var(--text-light);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    z-index: 1;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.step.active .step-icon {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.step.completed .step-icon {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.step.completed .step-label {
    color: var(--secondary);
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    width: 25%;
    transition: width 0.3s ease;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-family: var(--font-secondary);
    position: relative;
    display: inline-block;
}

[data-theme="dark"] .step-title {
    color: var(--text-light);
}

.step-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    border-radius: 3px;
}

/* Form Group */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

[data-theme="dark"] label {
    color: var(--text-light);
}

.required {
    color: #ef4444;
    margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background-color: var(--background);
    color: var(--text-dark);
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    color: var(--text-light);
    background-color: var(--background-alt);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.hint-text {
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    min-height: 1.2rem;
}

/* Radio and Checkbox Styles */
.radio-group,
.checkbox-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0;
}

.radio-label input,
.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.radio-label span,
.checkbox-label span {
    position: relative;
    padding-left: 28px;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

[data-theme="dark"] .radio-label span,
[data-theme="dark"] .checkbox-label span {
    color: var(--text-light);
}

.radio-label span::before,
.checkbox-label span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-dark);
    transition: all 0.2s ease;
}

.radio-label span::before {
    border-radius: 50%;
}

.checkbox-label span::before {
    border-radius: 4px;
}

.radio-label:hover span::before,
.checkbox-label:hover span::before {
    border-color: var(--primary);
}

.radio-label input:checked ~ span::before {
    border-color: var(--primary);
    background-color: var(--primary);
    box-shadow: inset 0 0 0 4px var(--background);
}

.checkbox-label input:checked ~ span::before {
    border-color: var(--primary);
    background-color: var(--primary);
}

.checkbox-label input:checked ~ span::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.checkbox-group {
    margin-top: 1rem;
}

.checkbox-label.agreement {
    align-items: flex-start;
}

.checkbox-label.agreement span {
    padding-top: 0;
}

.checkbox-label.agreement span::before {
    top: 0;
}

.checkbox-label.agreement input:checked ~ span::after {
    top: 1px;
}

/* Hidden Elements */
.hidden {
    display: none;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
}

.btn-prev,
.btn-next,
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 0.5rem;
    border: none;
    font-family: var(--font-primary);
}

.btn-prev {
    background-color: var(--background);
    color: var(--text-dark);
    border: 1px solid var(--border);
}

[data-theme="dark"] .btn-prev {
    background-color: var(--background-alt);
    color: var(--text-light);
}

.btn-prev:hover {
    background-color: var(--border);
}

.btn-next {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.btn-submit {
    background: linear-gradient(90deg, var(--secondary), var(--secondary-dark));
    color: white;
    padding: 1rem 2rem;
}

/* Info Container */
.info-container {
    align-self: start;
    position: sticky;
    top: 100px;
}

.info-content {
    background-color: var(--background);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 2rem;
    border-top: 5px solid var(--primary);
}

.info-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-family: var(--font-secondary);
}

[data-theme="dark"] .info-title {
    color: var(--text-light);
}

.info-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(79, 70, 229, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.info-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-family: var(--font-secondary);
}

[data-theme="dark"] .info-text h3 {
    color: var(--text-light);
}

.info-text p,
.info-text ul {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.info-text ul {
    padding-left: 1.25rem;
}

.info-text li {
    margin-bottom: 0.25rem;
}

.info-text a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.info-text a:hover {
    text-decoration: underline;
}

/* Success Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalZoomIn 0.3s ease forwards;
}

@keyframes modalZoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--primary);
    background-color: rgba(79, 70, 229, 0.1);
}

.success-content {
    padding: 3rem 2rem;
    text-align: center;
}

.success-icon {
    font-size: 5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.success-content h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-family: var(--font-secondary);
}

[data-theme="dark"] .success-content h2 {
    color: var(--text-light);
}

.success-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.success-actions {
    margin-top: 2rem;
}

.success-actions .btn-primary {
    padding: 0.75rem 1.5rem;
}

/* Responsive Styles */
@media (max-width: 1100px) {
    .registration-container {
        grid-template-columns: 1fr;
    }
    
    .info-container {
        position: static;
    }
}

@media (max-width: 768px) {
    .registration-form {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .registration-header {
        padding: 5rem 0 2rem;
    }
    
    .header-title {
        font-size: 2rem;
    }
    
    .step-title {
        font-size: 1.3rem;
    }
    
    .progress-steps {
        margin-bottom: 1rem;
    }
    
    .step-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-prev, 
    .btn-next, 
    .btn-submit {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .step:not(:first-child) .step-label {
        display: none;
    }
}

/* Add to the end of the file */

/* Offline warning for registration form */
.offline-warning {
    background-color: #f97316;
    color: white;
    padding: 10px 15px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

.offline-warning i {
    font-size: 1.2rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Style for error states in inputs */
input.error, 
select.error, 
textarea.error {
    border-color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.05) !important;
}

/* Additional animation for form steps */
.form-step.active {
    animation: slideInRight 0.4s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Improved hover effects for buttons */
.btn-next:hover,
.btn-submit:hover {
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.25);
    transform: translateY(-4px);
}

/* Add focus states for accessibility */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Footer Styles Improvement */
.footer {
    background-color: var(--background);
    color: var(--text-dark);
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

[data-theme="dark"] .footer {
    background-color: var(--background-dark);
    color: var(--text-light);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    color: var(--primary);
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-svg {
    width: 40px;
    height: 40px;
    margin-right: 0.75rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
}

.footer-links-column h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-family: var(--font-secondary);
}

[data-theme="dark"] .footer-links-column h4 {
    color: var(--text-light);
}

.footer-links-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-column ul li {
    margin-bottom: 0.5rem;
}

.footer-links-column ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links-column ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.footer-policy-links {
    display: flex;
    gap: 1.5rem;
}

.footer-policy-links a {
    color: var(--text-light);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-policy-links a:hover {
    color: var(--primary);
}

/* Offline warning fixes */
.offline-warning {
    background-color: #f97316;
    color: white;
    padding: 10px 15px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

/* Make sure it's hidden by default */
.offline-warning.hidden {
    display: none;
}

.offline-warning i {
    font-size: 1.2rem;
}

/* Media queries for responsive footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
