/* PropNet Register Wizard Styles */

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

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 50%, #f5f0ff 100%);
    min-height: 100vh;
    padding: 20px;
}

/* Wrapper */
.register-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

/* Header */
.register-header {
    text-align: center;
    padding: 20px 0 16px;
}

.logo-link {
    text-decoration: none;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #4a7dff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 0 24px;
    gap: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    background: #e0e0e0;
    color: #999;
    transition: all 0.3s;
}

.step.active .step-circle {
    background: #4a7dff;
    color: #fff;
}

.step.completed .step-circle {
    background: #34a853;
    color: #fff;
}

.step-label {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
}

.step.active .step-label {
    color: #4a7dff;
    font-weight: 600;
}

.step.completed .step-label {
    color: #34a853;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 8px;
    margin-bottom: 20px;
    min-width: 24px;
    max-width: 60px;
}

.step-line.completed {
    background: #34a853;
}

/* Card */
.register-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 36px 32px;
}

.card-header {
    margin-bottom: 28px;
}

.card-header.center {
    text-align: center;
}

.card-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.card-header .subtitle {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
}

.card-header .user-email {
    font-size: 13px;
    color: #4a7dff;
    margin-top: 6px;
}

/* Error */
.error-message {
    background: #fff0f0;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    text-align: center;
}

/* Role Cards */
.role-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.role-card {
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.role-card:hover {
    border-color: #b8d0ff;
    background: #fafbff;
}

.role-card.selected {
    border-color: #4a7dff;
    background: #f5f8ff;
    box-shadow: 0 0 0 1px #4a7dff;
}

.role-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f0f4ff;
    color: #4a7dff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.role-icon.agent {
    background: #fff7e6;
    color: #f59e0b;
}

.role-icon.subagent {
    background: #f0fdf4;
    color: #22c55e;
}

.role-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.role-features {
    list-style: none;
    padding: 0;
}

.role-features li {
    font-size: 13px;
    color: #666;
    padding: 3px 0;
    padding-left: 16px;
    position: relative;
}

.role-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d0d0d0;
}

.role-card.selected .role-features li::before {
    background: #4a7dff;
}

.role-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.role-badge.free {
    background: #e8f5e9;
    color: #2e7d32;
}

.role-badge.approval {
    background: #fff3e0;
    color: #e65100;
}

.role-badge.invite {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Invitation Box */
.invitation-box {
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.invitation-desc {
    font-size: 14px;
    color: #6b21a8;
    font-weight: 500;
    margin-bottom: 4px;
}

.invitation-note {
    font-size: 12px;
    color: #9ca3af;
}

/* Buttons */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 0;
    background: #4a7dff;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    text-align: center;
}

.submit-btn:hover:not(:disabled):not(.disabled) {
    background: #3a6ae8;
}

.submit-btn:disabled,
.submit-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

.google-btn {
    background: #fff;
    color: #333;
    border: 1px solid #dadce0;
    font-size: 15px;
}

.google-btn:hover:not(.disabled) {
    background: #f8f9fa;
    border-color: #c6c9cc;
}

.google-icon {
    flex-shrink: 0;
}

/* Links */
.login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #999;
}

.login-link a {
    color: #4a7dff;
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

.cancel-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #999;
    text-decoration: none;
}

.cancel-link:hover {
    color: #666;
}

/* Consent Styles */
.consent-all-wrap {
    background: #f8f9ff;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.consent-all-wrap input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #4a7dff;
    cursor: pointer;
}

.consent-all-wrap label {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
}

.consent-list {
    margin-bottom: 24px;
}

.consent-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.consent-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #4a7dff;
    cursor: pointer;
    flex-shrink: 0;
}

.consent-item-content {
    flex: 1;
}

.consent-item-label {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    cursor: pointer;
}

.consent-item-desc {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
    line-height: 1.4;
}

.consent-item-link {
    display: inline-block;
    font-size: 12px;
    color: #4a7dff;
    text-decoration: none;
    margin-top: 4px;
}

.consent-item-link:hover {
    text-decoration: underline;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.required {
    color: #d32f2f;
}

.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #4a7dff;
    box-shadow: 0 0 0 2px rgba(74, 125, 255, 0.1);
}

.slug-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.slug-input-wrap:focus-within {
    border-color: #4a7dff;
    box-shadow: 0 0 0 2px rgba(74, 125, 255, 0.1);
}

.slug-prefix {
    padding: 10px 0 10px 12px;
    font-size: 13px;
    color: #999;
    white-space: nowrap;
    background: #f9f9f9;
    border-right: 1px solid #e8e8e8;
    padding-right: 8px;
}

.slug-input-wrap input {
    border: none !important;
    box-shadow: none !important;
    padding: 10px 12px;
    flex: 1;
    min-width: 0;
}

.field-hint {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.field-hint.success {
    color: #2e7d32;
}

.field-hint.error {
    color: #d32f2f;
}

/* File Upload */
.file-upload-zone {
    border: 2px dashed #d0d0d0;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.file-upload-zone:hover {
    border-color: #4a7dff;
    background: #fafbff;
}

.file-upload-zone.has-file {
    border-style: solid;
    border-color: #4a7dff;
    background: #f5f8ff;
}

.upload-placeholder p {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}

.file-hint {
    font-size: 11px;
    color: #999;
}

.upload-file-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: #4a7dff;
}

.file-remove {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
}

.file-remove:hover {
    color: #d32f2f;
}

/* Complete Page */
.complete-icon {
    margin: 0 auto 20px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.complete-icon.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.complete-icon.pending {
    background: #fff3e0;
    color: #e65100;
}

.complete-info {
    background: #f8f9ff;
    border-radius: 10px;
    padding: 16px;
    margin: 24px 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.info-label {
    color: #888;
}

.info-value {
    color: #333;
    font-weight: 500;
}

.complete-services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0;
}

.service-card-link {
    text-decoration: none;
}

.service-card {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s;
}

.service-card:hover {
    border-color: #4a7dff;
    background: #fafbff;
}

.service-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.service-card p {
    font-size: 12px;
    color: #888;
}

.complete-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

.btn-primary {
    display: block;
    text-align: center;
    padding: 12px 0;
    background: #4a7dff;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #3a6ae8;
}

.btn-secondary {
    display: block;
    text-align: center;
    padding: 12px 0;
    background: #f5f5f5;
    color: #333;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #eee;
}

/* Footer */
.register-footer {
    text-align: center;
    padding: 20px 0;
    font-size: 12px;
    color: #bbb;
}

/* Responsive */
@media (max-width: 480px) {
    .register-card {
        padding: 28px 20px;
    }

    .role-card {
        padding: 16px;
    }

    .slug-prefix {
        font-size: 11px;
        padding: 10px 4px 10px 8px;
    }

    .step-label {
        font-size: 10px;
    }

    .complete-services {
        grid-template-columns: 1fr;
    }
}
