/* Pilom Registration Form Styles */
/* Based on design mockups with primary color #4e51c0 and secondary color #1fc187 */

:root {
    --primary-color: #4e51c0;
    --secondary-color: #1fc187;
    --text-dark: #333333;
    --text-medium: #666666;
    --text-light: #999999;
    --background-light: #f5f5f5;
    --border-color: #e0e0e0;
    --error-color: #dc3545;
    --success-color: #1fc187;
    --warning-color: #ffc107;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background-color: white;
    padding: 20px 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Registration Container */
.registration-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px;
}

.registration-header {
    text-align: center;
    margin-bottom: 40px;
}

.registration-header h1 {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 16px;
    color: var(--text-medium);
}

/* Progress Section */
.progress-section {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.progress-label {
    font-size: 14px;
    color: var(--text-medium);
    white-space: nowrap;
}

.progress-bar-container {
    flex: 1;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-percentage {
    font-size: 14px;
    color: var(--text-medium);
    white-space: nowrap;
}

/* Step Circles */
.step-circles {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 0;
}

.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    z-index: 2;
}

.step-circle.active {
    background-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(78, 81, 192, 0.2);
}

.step-circle.completed {
    background-color: var(--secondary-color);
}

.step-line {
    width: 60px;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 1;
}

.step-line.completed {
    background-color: var(--secondary-color);
}

/* Form Card */
.form-card {
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-card h2 {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 16px;
    color: var(--text-medium);
    margin-bottom: 30px;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(78, 81, 192, 0.1);
    background-color: white;
}

.form-group input.error {
    border-color: var(--error-color);
}

.form-group input.success {
    border-color: var(--success-color);
}

.form-hint {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 6px;
}

/* Validation Messages */
.validation-message {
    display: block;
    font-size: 14px;
    margin-top: 6px;
}

.validation-message.error {
    color: var(--error-color);
}

.validation-message.success {
    color: var(--success-color);
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-fill.weak {
    background-color: var(--error-color);
}

.strength-fill.medium {
    background-color: var(--warning-color);
}

.strength-fill.strong {
    background-color: var(--success-color);
}

.strength-text {
    font-size: 12px;
    color: var(--text-light);
}

/* Sector Grid */
.sector-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.sector-card {
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: white;
}

.sector-card:hover {
    border-color: var(--primary-color);
    background-color: rgba(78, 81, 192, 0.02);
}

.sector-card.selected {
    border-color: var(--primary-color);
    background-color: rgba(78, 81, 192, 0.05);
    position: relative;
}

.sector-card.selected::after {
    content: '✓';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-weight: bold;
    font-size: 20px;
}

.sector-name {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
}

/* Summary Section */
.summary-section {
    background-color: #f8f9fa;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.summary-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.summary-label {
    font-size: 14px;
    color: var(--text-medium);
}

.summary-value {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

/* Checkbox Group */
.checkbox-group {
    margin-bottom: 24px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    padding-left: 32px;
}

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

.checkmark {
    position: absolute;
    left: 0;
    top: 2px;
    height: 20px;
    width: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background-color: white;
    transition: all 0.2s ease;
}

.checkbox-container:hover .checkmark {
    border-color: var(--primary-color);
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked~.checkmark::after {
    display: block;
}

.checkbox-label {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Info Box */
.info-box {
    display: flex;
    gap: 12px;
    padding: 16px;
    background-color: #e8f4fd;
    border-left: 4px solid var(--primary-color);
    border-radius: 6px;
    margin-bottom: 24px;
}

.info-box svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box p {
    margin: 0;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #3d3f99;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(78, 81, 192, 0.3);
}

.btn-primary:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(78, 81, 192, 0.05);
    transform: translateY(-1px);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.form-actions .btn {
    flex: 1;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-medium);
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background-color: #fee;
    color: var(--error-color);
    border-left: 4px solid var(--error-color);
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid var(--success-color);
}

/* Success Page */
.success-card {
    background-color: white;
    border-radius: 12px;
    padding: 60px 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.success-icon {
    margin-bottom: 30px;
}

.success-card h1 {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.success-message {
    font-size: 16px;
    color: var(--text-medium);
    margin-bottom: 30px;
}

.success-info {
    text-align: left;
    margin: 30px 0;
}

.success-info strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.next-steps {
    text-align: left;
    background-color: #f8f9fa;
    padding: 24px;
    border-radius: 8px;
    margin: 30px 0;
}

.next-steps h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.next-steps ol {
    margin-left: 20px;
    color: var(--text-dark);
}

.next-steps li {
    margin-bottom: 8px;
    font-size: 15px;
}

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
}

.help-text {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-medium);
}

.help-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.help-text a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .registration-container {
        padding: 15px;
    }

    .registration-header h1 {
        font-size: 24px;
    }

    .form-card {
        padding: 24px;
    }

    .step-circles {
        gap: 0;
    }

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .step-line {
        width: 40px;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .success-card {
        padding: 40px 24px;
    }

    .success-card h1 {
        font-size: 24px;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-actions .btn {
        width: 100%;
    }
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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