/**
 * ProSBC Premium Wizard - Main Stylesheet
 * Version: 2.0.0
 */

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

/* Base */
html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    color: #4a4a4a;
    font-size: 0.9em;
}

/* Page Header */
.page-header {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 40px;
    display: none;
    align-items: center;
    justify-content: space-between;
}

.page-header .logo {
    height: 85px;
}

.page-header .header-text {
    font-size: 14px;
    color: #666;
}

.page-header a {
    color: #2b6cb0;
    text-decoration: none;
    margin-right: 15px;
}

.page-header a:hover {
    text-decoration: underline;
}

/* Main Container */
.wizard-wrapper {
    min-height: calc(100vh - 71px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 20px;
}

.wizard-container {
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 40px 50px;
    max-width: 700px;
    width: 100%;
}

/* Header */
.wizard-header {
    text-align: center;
    margin-bottom: 25px;
}

.wizard-header img {
    max-width: 180px;
    margin-bottom: 15px;
}

.wizard-header h1 {
    color: #1e3a5f;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.wizard-header p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Form Elements */
.form-group {
    margin-bottom: 18px;
}

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

.form-group label .required {
    color: #e53e3e;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: #333;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2b6cb0;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: #e53e3e;
}

.form-group .hint {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    max-height: 180px;
    overflow-y: auto;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    min-width: 180px;
    font-weight: normal;
    color: #4a4a4a;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2b6cb0;
}

/* Sub Section */
.sub-section {
    background: #fafafa;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
    border: 1px solid #e8e8e8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #2b6cb0;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s, transform 0.1s;
}

.btn:hover {
    background: #2c5282;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: #718096;
}

.btn-secondary:hover {
    background: #4a5568;
}

.btn-outline {
    background: transparent;
    border: 2px solid #2b6cb0;
    color: #2b6cb0;
}

.btn-outline:hover {
    background: #2b6cb0;
    color: white;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 16px;
}

.nav-buttons .btn {
    min-width: 130px;
}

.nav-buttons .spacer {
    flex: 1;
}

/* Status */
.status-loading {
    padding: 60px 20px;
    text-align: center;
}

.status-loading span {
    color: #666;
    font-size: 16px;
}

.spinner {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid #e8e8e8;
    border-top: 3px solid #2b6cb0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Messages */
.error-box {
    background: #fed7d7;
    color: #c53030;
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #feb2b2;
    font-size: 14px;
}

.info-box {
    background: #e6f3ff;
    color: #1e3a5f;
    padding: 14px 16px;
    border-radius: 4px;
    margin-top: 20px;
    border: 1px solid #b3d7ff;
    font-size: 13px;
    line-height: 1.5;
}

.info-box strong {
    display: block;
    margin-bottom: 4px;
    color: #2b6cb0;
}

.success-box {
    background: #c6f6d5;
    color: #276749;
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #9ae6b4;
}

/* Success Page */
.success-icon {
    width: 90px;
    height: 90px;
    background: #38a169;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 48px;
    color: white;
}

/* Review Section */
.review-section {
    background: #fafafa;
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #e8e8e8;
}

.review-section h3 {
    font-size: 13px;
    color: #2b6cb0;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.review-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e8e8e8;
}

.review-row:last-child {
    border-bottom: none;
}

.review-label {
    color: #666;
    font-size: 14px;
}

.review-value {
    color: #1e3a5f;
    font-weight: 600;
    font-size: 14px;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

/* Hide steps by default */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

.hidden {
    display: none !important;
}

/* Tooltip Styles */
.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #e8e8e8;
    color: #666;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    margin-left: 6px;
    position: relative;
    vertical-align: middle;
    transition: background 0.2s, color 0.2s;
}

.tooltip-icon:hover {
    background: #2b6cb0;
    color: white;
}

.tooltip-icon .tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: 280px;
    background: #1e3a5f;
    color: white;
    text-align: left;
    border-radius: 6px;
    padding: 12px 14px;
    position: absolute;
    z-index: 100;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: normal;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: opacity 0.2s, visibility 0.2s;
}

.tooltip-icon .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #1e3a5f transparent transparent transparent;
}

.tooltip-icon:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-icon.tooltip-left .tooltip-text {
    left: 0;
    transform: translateX(0);
}

.tooltip-icon.tooltip-left .tooltip-text::after {
    left: 14px;
}

.tooltip-icon.tooltip-right .tooltip-text {
    left: auto;
    right: 0;
    transform: translateX(0);
}

.tooltip-icon.tooltip-right .tooltip-text::after {
    left: auto;
    right: 14px;
}

/* Language Selector */
#language-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#language-select {
    padding: 6px 10px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 13px;
    background: white;
}

/* Modal Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 10;
    background-color: #ffffff;
}

.modal {
    width: 400px;
    position: fixed;
    top: 20%;
    left: 50%;
    margin-left: -200px;
    border-radius: 40px;
    text-align: center;
    z-index: 11;
}

.modal .logo {
    max-width: 200px;
}

.modal .modal-message {
    margin-top: 20px;
    font-size: 18px;
    color: #b9b9b9;
}

#loading-modal {
    display: none;
}

/* Responsive */
@media (max-width: 600px) {
    .wizard-container {
        padding: 30px 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .nav-buttons {
        flex-direction: column-reverse;
    }

    .nav-buttons .btn {
        width: 100%;
    }
}
