/* Registration Form Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f7;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.registration-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.registration-header {
    margin-bottom: 40px;
}

.registration-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-bottom: 20px;
}

.progress-line {
    position: absolute;
    top: 15px;
    left: 60px;
    right: 60px;
    height: 4px;
    background: #ddd;
    z-index: 0;
}

.progress-fill {
    height: 100%;
    background: #1a3b6e;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: #999;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle,
.progress-step.completed .step-circle {
    background: #1a3b6e;
    border-color: #1a3b6e;
    color: #fff;
}

.step-label {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

.progress-step.active .step-label {
    color: #1a3b6e;
    font-weight: 600;
}

/* Form Styles */
.form-step {
    display: none;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.form-step.active {
    display: block;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #5c4a3d;
    margin-bottom: 8px;
}

.required {
    color: #c53030;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    background: #e8e8e8;
    color: #333;
    transition: background 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 2px #1a3b6e;
}

.form-group input::placeholder {
    color: #888;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Input with Prefix */
.input-prefix {
    display: flex;
    background: #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
}

.input-prefix .prefix {
    padding: 14px 12px;
    background: #ddd;
    color: #666;
    font-size: 15px;
    white-space: nowrap;
}

.input-prefix input {
    border-radius: 0;
    flex: 1;
}

/* Checkbox Styles */
.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-label .checkmark {
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 2px solid #ccc;
    border-radius: 4px;
    transition: all 0.2s;
}

.checkbox-label input:checked ~ .checkmark {
    background: #1a3b6e;
    border-color: #1a3b6e;
}

.checkbox-label .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-label input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-group-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Radio Styles */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    position: relative;
    padding-left: 32px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-label .radio-checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #fff;
    border: 2px solid #ccc;
    border-radius: 50%;
    transition: all 0.2s;
}

.radio-label input:checked ~ .radio-checkmark {
    border-color: #1a3b6e;
}

.radio-label .radio-checkmark:after {
    content: '';
    position: absolute;
    display: none;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #1a3b6e;
    border-radius: 50%;
}

.radio-label input:checked ~ .radio-checkmark:after {
    display: block;
}

/* Other Input */
.other-input {
    margin-top: 12px;
}

.other-input.hidden {
    display: none;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: #1a3b6e;
    background: #f0f4f8;
}

.upload-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.upload-hint {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
}

.browse-btn {
    padding: 10px 24px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.browse-btn:hover {
    border-color: #1a3b6e;
    color: #1a3b6e;
}

.file-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: #e8f4e8;
    border-radius: 6px;
}

.file-preview.hidden {
    display: none;
}

.file-name {
    font-size: 14px;
    color: #333;
}

.remove-file {
    background: #dc3545;
    color: #fff;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.form-help {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}

.form-help a {
    color: #1a3b6e;
    text-decoration: underline;
}

/* Prop 65 Download Section */
.prop65-download-section {
    margin-top: 12px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #28a745;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 12px;
    transition: background 0.2s;
}

.btn-download:hover {
    background: #218838;
}

.btn-download svg {
    flex-shrink: 0;
}

.prop65-required.hidden {
    display: none;
}

/* File Upload Error State */
.file-upload-area.error {
    border-color: #dc3545;
    background: #fff5f5;
}

/* Billing Section */
.billing-section {
    background: #f8f8f8;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.billing-section.hidden {
    display: none;
}

/* Buttons */
.form-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
}

.form-actions.two-buttons {
    justify-content: space-between;
}

.btn {
    padding: 14px 40px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: #1a3b6e;
    color: #fff;
}

.btn-primary:hover {
    background: #15315c;
}

.btn-primary:disabled {
    background: #999;
    cursor: not-allowed;
}

.btn-secondary {
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
}

.btn-secondary:hover {
    background: #f5f5f5;
}

/* Success Content */
.success-content {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 24px;
}

.success-content h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.success-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 12px;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.overlay.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #fff;
    border-top-color: #1a3b6e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.overlay p {
    color: #fff;
    font-size: 16px;
}

.error-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
}

.error-icon {
    width: 60px;
    height: 60px;
    background: #dc3545;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.error-content h3 {
    margin-bottom: 12px;
    color: #333;
}

.error-content p {
    color: #666;
    margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 600px) {
    .registration-container {
        padding: 20px 16px;
    }

    .registration-header h1 {
        font-size: 24px;
    }

    .form-step {
        padding: 20px;
    }

    .progress-line {
        left: 40px;
        right: 40px;
    }

    .step-label {
        font-size: 10px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .form-actions.two-buttons {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .form-actions.two-buttons .btn {
        width: 100%;
    }
}
