/* Reset & Variables */
:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --secondary: #111827;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    --bg-gray: #F9FAFB;
    --border: #E5E7EB;
    --border-strong: #D1D5DB;
    --card-bg: #F8FAFC;
    --white: #FFFFFF;
}

.logo-upload-box .uploaded-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

/* Make the wizard container full-width on Gemini page */
.main-form-section .container.form-container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* Scope base typography/background only to Job Wizard pages */
body.Job-Wizard {
    font-family: 'Inter', sans-serif;
    color: var(--secondary);
    background-color: var(--bg-gray);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Page Layout (match original Gemini layout) */
.page-wrapper {
    display: flex;
    min-height: 100vh;
    overflow: visible;
    margin-top: -70px;
    margin-bottom: -50px;
}

/* Left Side - Form */
.form-side {
    flex: 0 0 58%;
    max-width: 58%;
    padding: 32px 48px 48px 80px;
    background: var(--white);
    align-self: stretch;
}

/* Step Navigation */
.step-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.step-link {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.step-link.active {
    color: var(--primary);
}

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

/* Page Title */
.page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

/* Form Card */
.form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 18px;
}

.card-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: 0.3px;
    margin-bottom: 20px;
}

/* Company Details Grid */
.company-details-grid {
    display: flex;
    gap: 18px;
    margin-bottom: 16px;
}

.logo-upload-section {
    flex-shrink: 0;
}

.field-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1F2937;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-transform: none;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

.logo-upload-box {
    width: 140px;
    height: 130px;
    border: 2px dashed var(--border-strong);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s;
    background: var(--white);
}

.logo-upload-box:hover {
    border-color: var(--primary);
}

.upload-icon {
    margin-bottom: 4px;
}

.upload-icon i {
    font-size: 24px;
    color: #4B5563;
}

.upload-text {
    font-size: 12px;
    font-weight: 500;
    color: #4B5563;
}

/* Company Inputs */
.company-inputs {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    row-gap: 4px;
}

.form-group.full-width {
    width: 100%;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.label-row .field-label {
    margin-bottom: 0;
}

.label-with-tooltip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.label-with-tooltip .field-label {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .label-row {
        flex-wrap: wrap;
    }

    .label-row .login-link {
        width: 100%;
        margin-top: 4px;
        text-align: left;
    }
}

.login-link {
    font-size: 12px;
    color: var(--secondary)!important;
    white-space: nowrap;
    border-bottom: none;
    font-weight: 400;
}
.login-link:hover {
    color: inherit !important;
}

.login-link a {
    color: var(--primary);
    font-weight: 400;
}

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

/* Form Inputs */
.form-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    color: var(--secondary);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    color: var(--secondary);
    background: var(--white);
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Validation Error States */
.field-error {
    color: #DC2626;
    font-size: 12px;
    font-weight: 400;
    margin: 4px 0 0 0;
    line-height: 1.4;
    display: block;
}

.field-error.hidden {
    display: none;
}

.input-error,
.is-invalid {
    border-color: #DC2626 !important;
}

.input-error:focus,
.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.is-valid {
    border-color: #10B981 !important;
}

.is-valid:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

.invalid-feedback {
    color: #DC2626;
    font-size: 12px;
    font-weight: 400;
    margin: 4px 0 0 0;
    line-height: 1.4;
}

/* Mode Toggle */
.mode-toggle-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.mode-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mode-label.active {
    color: var(--secondary);
    font-weight: 800;
}

/* AI Model Selector - beside the mode toggle */
.ai-model-selector {
    position: relative;
    margin-left: 4px;
}

.ai-model-select {
    height: 30px;
    padding: 2px 28px 2px 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    color: var(--text-dark);
    cursor: pointer;
    min-width: 100px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.ai-model-selector::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900;
    font-size: 9px;
    color: var(--text-light);
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked+.toggle-slider {
    background-color: var(--primary);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(22px);
}

/* Job Details Grid */
.job-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
}

/* Select Wrapper */
.select-wrapper {
    position: relative;
    width: 100%;
}

.form-select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: var(--secondary);
    background: var(--white);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Align Select2 (Industry) dropdown to look like native .form-select in bottom row */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 44px !important;
    border: 1px solid var(--border-strong)!important;
    border-radius: 10px!important;
    background: var(--white)!important;
    display: flex;
    align-items: center;
    padding: 0 40px 0 14px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    color: var(--secondary);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0;
    margin: 0;
    line-height: 1.4;
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary);
    font-family: 'Inter', sans-serif;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--text-light);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 14px;
}

.select2-container--default .select2-results__option {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary);
    padding: 8px 14px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary);
}

.select-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--text-gray);
    pointer-events: none;
}

/* Salary Grid - equal columns */
.salary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

/* Bottom Row */
.bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: flex-start;
    gap: 12px 14px;
}

/* Reserve space for validation messages under Industry & Output language
   so dropdowns do not jump when errors appear */
.bottom-row .form-group .invalid-feedback {
    display: block !important;
    min-height: 20px;
    margin-top: 4px;
}

/* Stack label, select, and error vertically so only the area below the select grows */
.bottom-row .form-group {
    display: flex;
    flex-direction: column;
}

/* Generate Button */
.btn-generate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    width: auto;
    min-width: 140px;
    padding: 0 16px;
    align-self: flex-end;
    margin-top: auto;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 46px;
}

.btn-generate:hover {
    background: var(--primary-dark);
}

.btn-generate i {
    font-size: 14px;
}

.btn-generate-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
}

/* Right Side - Preview */
.preview-side {
    flex: 1 1 45%;
    max-width: 45%;
    padding: 24px 32px;
    background: var(--bg-gray);
    border-left: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: stretch;
    align-self: stretch;
    overflow: visible;
}

/* Preview Heading Layout (v2 pages only) */
.preview-side.has-preview-heading {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.preview-heading-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 0 0 16px 0;
    padding-top: 26px;
}

.preview-heading {
    font-size: 22px;
    font-weight: 800;
    color: var(--secondary);
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
}

.preview-heading-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-light);
    margin: 0;
}

.preview-side.has-preview-heading .preview-card {
    margin-top: 0;
    margin-bottom: 32px;
    flex: 1;
}

.preview-card {
    width: 100%;
    max-width: 600px;
    min-height: 560px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin: 24px 0;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Preview Header */
.preview-header {
    background: var(--primary);
    padding: 24px 32px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    flex-shrink: 0;
    border-radius: 12px 12px 0 0;
}

.preview-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.preview-header-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Job Meta Bar - Inline in Header */
.preview-job-meta-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 0;
    padding-top: 8px;
}

.preview-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.preview-meta-item i {
    font-size: 13px;
    color: var(--white);
    margin-top: -3px;
}

.preview-meta-item span {
    font-size: 13px;
    font-weight: 500;
    color: var(--white);
}

.meta-separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 10px;
    font-weight: 300;
}

/* Job Details Bar - Inside preview content, after company name */
/* Job Details Bar - Inside preview content, after company name */
.preview-job-details-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns */
    gap: 16px 24px;
    padding: 16px 0;
    margin-bottom: 16px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.preview-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    /* Allow text truncate to work */
}

.preview-detail-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.preview-detail-icon i {
    font-size: 14px;
    color: var(--primary);
}

.preview-detail-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.preview-detail-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.preview-detail-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-logo-placeholder {
    width: 64px;
    height: 64px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.preview-logo-placeholder i {
    font-size: 24px;
    color: var(--primary);
}

/* Preview Content */
.preview-content {
    padding: 20px 28px 0;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Preview Actions */
.preview-actions {
    display: flex;
    gap: 10px;
    align-self: flex-start;
}

/* Scrollable Sections */
.preview-sections-scroll {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 32px;
}

/* Preview Footer with Next Button */
.preview-footer {
    padding: 16px 32px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid var(--border);
    background: var(--white);
}

.btn-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 32px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-next:hover {
    background: var(--primary-dark);
}

/* Generate Button Hidden State */
.btn-generate.hidden {
    display: none;
}

/* Manual Mode - Bottom Row expands to 2 columns */
.bottom-row.manual-mode {
    grid-template-columns: 1fr 1fr;
}

/* Hide Output language and AI model fields in Manual mode */
.bottom-row.manual-mode .output-language-group {
    display: none;
}

.action-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    background: #f0f4ff;
}

.action-btn i {
    font-size: 12px;
    color: var(--primary);
}

/* Preview Job Title */
.preview-job-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-company-name {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Preview Sections */
.preview-section {
    margin-bottom: 10px;
}

.preview-section:last-child {
    margin-bottom: 0;
}

.preview-section-title {
    font-size: 10px;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: 0.3px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.preview-text {
    font-size: 13px;
    font-weight: 400;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Placeholder for empty job description preview */
.preview-text[data-placeholder]:empty::before {
    content: attr(data-placeholder);
    color: #374151;
}

.preview-list {
    margin: 0;
    padding-left: 16px;
    list-style-type: disc;
}

.preview-list li {
    font-size: 13px;
    font-weight: 400;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 6px;
}

.preview-list li:last-child {
    margin-bottom: 0;
}

/* Image Upload Enhanced */
.logo-upload-box {
    width: 140px;
    height: 160px;
    border: 2px dashed var(--border-strong);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.logo-upload-box:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.02);
}

.logo-upload-box.has-image {
    border: none;
    border-radius: 50%;
    height: 140px;
    overflow: visible;
    background: transparent;
}

.logo-upload-box .uploaded-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.logo-upload-box .image-actions {
    position: absolute;
    top: 4px;
    right: 4px;
    display: none;
    gap: 4px;
}

.logo-upload-box:hover .image-actions {
    display: flex;
}

.image-actions button {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: background 0.2s;
}

.image-actions button:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Preview Logo with Image */
.preview-logo-placeholder.has-image {
    background: transparent;
    overflow: hidden;
}

.preview-logo-placeholder .preview-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* ensure full logo is visible inside circle */
    border-radius: 50%;
    /* Match parent border radius */
}

/* Role Description */
.role-description-wrapper {
    position: relative;
}

.view-full-jd {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 0;
    border: none;
    background: none;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.view-full-jd:hover {
    text-decoration: underline;
}

.view-full-jd i {
    font-size: 10px;
    transition: transform 0.2s;
}

.view-full-jd.expanded i {
    transform: rotate(180deg);
}

/* Manual Mode Editor */
.manual-editor-container {
    width: 100%;
    min-height: 500px;
}

.manual-editor-container .tox-tinymce {
    border-radius: 8px;
    height: 800px !important;
    border-color: var(--border-strong);
}

.role-description-wrapper.manual-mode {
    max-height: none;
    overflow: visible;
}

.role-description-wrapper.manual-mode::after {
    display: none;
}

/* Manage Logo Modal */
/* Logo Upload Section - relative container for desktop modal positioning */
.logo-upload-section {
    position: relative;
}

.logo-modal-overlay {
    position: absolute;
    top: 24px;
    left: 0;
    width: auto;
    background: transparent;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.logo-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile: Center the modal on screen */
@media (max-width: 768px) {
    .logo-modal-overlay {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(17, 24, 39, 0.45);
        align-items: center;
        justify-content: center;
        padding: 16px;
        top: 0;
        left: 0;
        right: 0;
    }
}

.logo-modal {
    width: 360px;
    max-width: calc(100vw - 32px);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: modalSlideIn 0.2s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

.logo-modal-close {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: background 0.2s, color 0.2s;
}

.logo-modal-close:hover {
    background: var(--bg-gray);
    color: var(--secondary);
}

.logo-modal-body {
    padding: 16px;
}

.logo-dropzone {
    height: 180px;
    border: 1px dashed var(--border-strong);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-align: center;
}

.logo-dropzone:hover,
.logo-dropzone.dragover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.03);
}

.logo-dropzone-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--text-gray);
}

.logo-dropzone-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 6px;
}

.logo-dropzone-subtitle {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-gray);
}

.logo-cropper-frame {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--white);
}

.logo-cropper-frame img {
    max-width: 100%;
    display: block;
}

/* Cropper toolbar (zoom buttons above frame) */
.logo-cropper-toolbar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.logo-tool-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-strong);
    background: var(--white);
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    transition: background 0.2s, border-color 0.2s;
}

.logo-tool-btn:hover {
    background: var(--bg-gray);
    border-color: var(--border);
}

.logo-tool-btn i {
    font-size: 12px;
}

.logo-modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    background: var(--white);
}

.logo-modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-modal-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    background: var(--white);
    color: var(--text-gray);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.logo-modal-icon-btn:hover {
    background: #FEE2E2;
    border-color: rgba(220, 38, 38, 0.25);
    color: #DC2626;
}

.logo-modal-icon-btn i {
    font-size: 12px;
}

.btn-logo-secondary,
.btn-logo-primary {
    height: 36px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.btn-logo-secondary {
    background: var(--white);
    border: 1px solid var(--border-strong);
    color: var(--secondary);
}

.btn-logo-secondary:hover {
    background: var(--bg-gray);
}

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

.btn-logo-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-logo-primary:not(:disabled):hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-logo-primary:not(:disabled):hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.cropper-container {
    background: var(--white) !important;
}

.cropper-view-box {
    outline: 2px solid rgba(37, 99, 235, 0.9);
    outline-offset: -1px;
}

.cropper-line,
.cropper-point {
    background-color: rgba(37, 99, 235, 0.9);
}

/* ========== FIELD TOOLTIP STYLES ========== */

.tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    vertical-align: middle;
}

.tooltip-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    transition: color 0.15s;
}

.tooltip-icon:hover {
    color: var(--primary);
}

.tooltip-bubble {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    background: var(--secondary);
    color: var(--white);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
    padding: 8px 12px;
    border-radius: 8px;
    width: max-content;
    max-width: 260px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tooltip-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 8px;
    border: 5px solid transparent;
    border-top-color: var(--secondary);
}

.tooltip-wrapper:hover .tooltip-bubble,
.tooltip-wrapper.active .tooltip-bubble {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (max-width: 480px) {
    .tooltip-bubble {
        max-width: 200px;
    }
}

.tooltip-down .tooltip-bubble {
    bottom: auto;
    top: calc(100% + 8px);
}

.tooltip-down .tooltip-bubble::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: var(--secondary);
}

@media (max-width: 768px) {
    .tooltip-down .tooltip-bubble {
        left: auto;
        right: 0;
        max-width: 240px;
    }

    .tooltip-down .tooltip-bubble::after {
        left: auto;
        right: 8px;
    }
}

/* ========== AUTH MODAL STYLES ========== */

.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 16px;
}

.auth-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    width: 100%;
    max-width: 460px;
    background: var(--white);
    border-radius: 20px;
    padding: 52px 40px 36px;
    position: relative;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
    transform: translateY(16px) scale(0.96);
    transition: transform 0.3s ease;
}

.auth-modal-overlay.active .auth-modal {
    transform: translateY(0) scale(1);
}

.auth-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 18px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.auth-modal-close:hover {
    background: var(--bg-gray);
    color: var(--secondary);
    border-color: var(--border-strong);
}

.auth-modal-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--secondary);
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.3;
}

.auth-modal-subtitle {
    font-size: 14px;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.6;
}

.auth-input-group {
    margin-bottom: 22px;
}

.auth-input-group .field-label {
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.auth-input-wrapper {
    position: relative;
}

.auth-input-wrapper .form-input {
    padding-right: 48px;
}

.auth-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-gray);
    font-size: 16px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}

.auth-password-toggle:hover {
    color: var(--secondary);
}

.auth-recaptcha-placeholder {
    margin: 28px auto;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 304px;
    width: 100%;
}

.auth-recaptcha-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-recaptcha-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-strong);
    border-radius: 3px;
    background: var(--white);
    flex-shrink: 0;
    cursor: pointer;
}

.auth-recaptcha-checkbox.checked {
    background: var(--primary);
    border-color: var(--primary);
    position: relative;
}

.auth-recaptcha-checkbox.checked::after {
    content: '✓';
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.auth-recaptcha-label {
    font-size: 13px;
    color: var(--secondary);
    font-weight: 500;
}

.auth-recaptcha-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.auth-recaptcha-logo {
    font-size: 22px;
    color: var(--text-gray);
}

.auth-recaptcha-right span {
    font-size: 9px;
    color: var(--text-light);
}

.auth-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 4px;
}

.auth-btn:hover {
    background: var(--primary-dark);
}

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

.auth-link {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    transition: color 0.15s;
    text-decoration: none;
}

.auth-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Auth modal step visibility */
.auth-step {
    display: none;
}

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

@media (max-width: 480px) {
    .auth-modal {
        padding: 48px 20px 24px;
        border-radius: 16px;
        max-width: calc(100vw - 32px);
    }

    .auth-modal-title {
        font-size: 22px;
    }

    .auth-recaptcha-placeholder {
        max-width: 100%;
    }
}


/* ========== SCREENING PAGE STYLES ========== */

/* Page Subtitle */
.page-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Screening Questions Container */
.screening-questions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

/* Question Card */
.question-card {
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.question-card.collapsed {
    border-color: var(--border);
}

.question-card.collapsed:hover {
    border-color: var(--border-strong);
}

/* Question Header */
.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.question-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary);
}

.question-actions {
    display: flex;
    gap: 8px;
}

.question-action-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.question-action-btn:hover {
    background: var(--bg-gray);
    color: var(--secondary);
}

.question-action-btn.delete-btn:hover {
    background: #FEE2E2;
    color: #DC2626;
}

/* Question Content (Expanded) */
.question-content {
    padding: 0 20px 20px;
}

/* Question Text Display - Underline style input */
.question-text-display {
    font-size: 16px;
    font-weight: 400;
    color: var(--secondary);
    line-height: 1.5;
    margin: 0 0 20px 0;
    outline: none;
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
    min-height: 20px;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.question-text-display:focus {
    border-bottom-color: var(--secondary);
}

/* Placeholder for empty contenteditable */
.question-text-display:empty::before {
    content: attr(data-placeholder);
    color: var(--text-muted);
}

/* Question text wrapper with edit icon */
.question-text-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
}

.question-text-wrapper .question-text-display {
    flex: 1;
    margin-bottom: 0;
}

/* Non-editable state: no underline border */
.question-text-display[contenteditable="false"] {
    border-bottom-color: transparent;
    cursor: default;
}

.edit-text-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px 4px;
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.edit-text-btn:hover {
    color: var(--secondary);
}

/* Question Divider */
.question-divider {
    display: none;
}

/* Field Labels for answer groups */
.ideal-answer-group .field-label,
.answer-type-group .field-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    margin-bottom: 8px;
    display: block;
    text-transform: none;
}

.question-text-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-gray);
    color: var(--secondary);
    transition: all 0.15s ease;
}

.question-text-input::placeholder {
    color: var(--text-muted);
}

.question-text-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

/* Answer Row - Side by Side Layout */
.answer-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.ideal-answer-group {
    flex: 2;
}

.answer-type-group {
    flex: 1;
    min-width: 140px;
}

.ideal-answer-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-gray);
    color: var(--secondary);
    transition: all 0.15s ease;
}

.ideal-answer-input::placeholder {
    color: var(--text-muted);
}

.ideal-answer-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

/* Custom Select Dropdown */
.select-wrapper {
    position: relative;
}

.form-select.answer-type-select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-gray);
    color: var(--secondary);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.15s ease;
}

.form-select.answer-type-select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

.select-wrapper .select-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--text-muted);
    pointer-events: none;
}

/* Question Header Right - Delete + Toggle */
.question-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Question Footer */
.question-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.question-footer:has(.recommended-badge) {
    justify-content: space-between;
}

.recommended-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    background: #EFF6FF;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Mandatory Checkbox */
.mandatory-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--secondary);
    cursor: pointer;
}

.mandatory-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Collapsed Question */
.question-text-collapsed {
    font-size: 15px;
    color: var(--secondary);
    flex: 1;
}

.question-toggle-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.question-toggle-btn:hover {
    background: var(--bg-gray);
    color: var(--secondary);
}

/* Add Question Button */
.add-question-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    background: var(--white);
    border: 2px dashed var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.add-question-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #F8FAFF;
}

.add-question-btn i {
    font-size: 12px;
}

/* ========== NEW QUESTION FORM STYLES ========== */

/* Question Row Layout */
.question-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.question-input-group {
    flex: 1;
}

.response-type-group {
    width: 200px;
    flex-shrink: 0;
}

.ideal-answer-group {
    flex: 1;
}

/* Save Button */
.btn-save-question {
    height: 46px;
    padding: 0 32px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
    align-self: flex-end;
}

.btn-save-question:hover {
    background: var(--primary-dark);
}

/* Delete Button */
.delete-question-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.delete-question-btn:hover {
    color: #DC2626;
    background: #FEE2E2;
}

/* Toggle Switch */
.toggle-qualification {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-left: auto;
}

.toggle-input {
    display: none;
}

.qualification-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--border);
    border-radius: 12px;
    transition: background 0.2s;
}

.qualification-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle-input:checked+.qualification-slider {
    background: var(--primary);
}

.toggle-input:checked+.qualification-slider::before {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 13px;
    color: var(--secondary);
}

/* Collapsed Question Header */
.question-header-collapsed {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}

.question-text-collapsed {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
}

.question-actions-collapsed {
    display: flex;
    gap: 8px;
}

/* Recommended Badge Update */
.recommended-badge {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background: #EFF6FF;
    border-radius: 20px;
}

/* ========== PREVIEW Q/A LIST ========== */

.preview-qa-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-qa-question {
    font-size: 13px;
    font-weight: 400;
    color: #374151;
    line-height: 1.6;
    margin: 0 0 4px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.preview-qa-answer {
    font-size: 13px;
    font-weight: 400;
    color: #374151;
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    margin-top: 32px;
}

.back-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.back-link:hover {
    color: var(--secondary);
}

.next-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

.next-btn:hover {
    background: var(--primary-dark);
}

.next-btn i {
    font-size: 12px;
}

/* Applicant View Card */
.applicant-view-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px;
}

.applicant-view-icon {
    width: 56px;
    height: 56px;
    background: #EFF6FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.applicant-view-icon i {
    font-size: 24px;
    color: var(--primary);
}

.applicant-view-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
}

.applicant-view-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 280px;
}

/* ========== PREVIEW QUESTION LIST (Screening Page) ========== */

.preview-questions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-question-item {
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.preview-question-item.expanded {
    border-color: var(--primary);
    background: var(--white);
}

.preview-q-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
}

.preview-q-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 20px;
    padding: 0 6px;
    background: var(--primary);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    flex-shrink: 0;
}

.preview-q-text {
    flex: 1;
    font-size: 13px;
    color: var(--secondary);
    line-height: 1.4;
}

.preview-q-toggle {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-top: 2px;
}

.preview-q-answer {
    display: none;
    padding: 0 14px 12px;
    padding-left: 52px;
}

.preview-question-item.expanded .preview-q-answer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.preview-q-ideal {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

.preview-q-required {
    display: inline-block;
    padding: 2px 6px;
    font-size: 9px;
    font-weight: 600;
    color: #DC2626;
    background: #FEE2E2;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Responsive */
@media (max-width: 1200px) {
    .form-side {
        flex: 0 0 55%;
        max-width: 55%;
        padding: 24px 24px;
    }

    .preview-side {
        padding: 24px;
    }

    .salary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .salary-grid>.form-group:first-child {
        grid-column: 1 / -1;
    }

    .bottom-row {
        grid-template-columns: 1fr 1fr;
    }

    .bottom-row .btn-generate {
        grid-column: 1 / -1;
    }

    .registration-step .phone-input-row {
        grid-template-columns: minmax(80px, 110px) 1fr;
    }
}

@media (max-width: 900px) {
    .page-wrapper {
        flex-direction: column;
    }

    .page-wrapper {
        height: auto;
        overflow: visible;
    }

    .form-side {
        flex: none;
        max-width: 100%;
        padding: 24px;
    }

    .preview-side {
        flex: none;
        max-width: 100%;
        width: 100%;
        padding: 24px;
        min-height: auto;
        overflow: visible;
    }

    .preview-card {
        max-width: 100%;
        margin: 16px auto 0;
        height: auto;
    }

    .job-details-grid,
    .salary-grid {
        max-width: 100%;
    }

    .registration-step .phone-input-row {
        grid-template-columns: minmax(70px, 90px) 1fr;
    }
}

@media (max-width: 640px) {
    .form-side {
        padding: 24px 16px 16px 16px;
    }

    .step-nav {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
    }

    .step-divider {
        display: inline;
        font-size: 11px;
    }

    .step-link {
        display: inline-flex;
        align-items: baseline;
        gap: 4px;
        line-height: 1.2;
    }

    .step-num {
        font-size: 11px;
        font-weight: 800;
    }

    .step-text {
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.2px;
    }

    .company-details-grid {
        flex-direction: column;
    }

    .job-details-grid {
        grid-template-columns: 1fr;
    }

    .salary-grid {
        grid-template-columns: 1fr;
    }

    .bottom-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .btn-generate {
        width: 100%;
    }
}

/* ========== SITE HEADER ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo img {
    height: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links .nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links .nav-link:hover,
.nav-links .nav-link.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.registration-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary);
    text-decoration: none;
}

.registration-link:hover {
    color: var(--primary);
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary);
    color: var(--white);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.login-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
    text-decoration: none;
}

.login-btn img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--secondary);
    cursor: pointer;
    transition: border-color 0.2s;
}

.language-btn:hover {
    border-color: var(--primary);
}

.language-btn img {
    width: 12px;
    height: 12px;
}

.mobile-menu-btn {
    display: none;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 16px 24px;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav-link {
    padding: 12px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary);
}

.mobile-nav-link.login {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-nav-link.login img {
    width: 18px;
    height: 18px;
}

.mobile-nav-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.desktop-nav {
    display: flex;
}

/* ========== SITE FOOTER ========== */
.site-footer {
    background: #2563EB;
    color: var(--white);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 24px;
}

.footer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 32px;
}

.footer-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.footer-header p {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

.footer-register-btn {
    padding: 12px 24px;
    background: var(--white);
    color: var(--primary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.footer-register-btn:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--primary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 48px;
}

.footer-main {
    flex: 1;
}

.footer-logo {
    margin-bottom: 24px;
}

.footer-logo img {
    height: 28px;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: var(--white);
}

.footer-social-newsletter {
    width: 280px;
}

.footer-social h4,
.footer-newsletter h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.social-icons a:hover {
    opacity: 1;
}

.social-icons img {
    width: 20px;
    height: 20px;
}

.newsletter-form {
    display: flex;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 14px;
    border: none;
    font-size: 13px;
    color: var(--secondary);
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form input::placeholder {
    color: var(--text-gray);
}

.newsletter-form button {
    padding: 10px 16px;
    background: #1D4ED8;
    color: var(--white);
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-form button:hover {
    background: #1e40af;
}

.footer-newsletter p {
    font-size: 12px;
    opacity: 0.7;
    margin: 0;
}

.footer-copyright {
    text-align: center;
    padding-top: 24px;
    margin-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-copyright p {
    font-size: 13px;
    opacity: 0.6;
    margin: 0;
}

/* (page-wrapper margin moved to main rule above) */

/* ========== RESPONSIVE HEADER/FOOTER ========== */
@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .footer-social-newsletter {
        width: 100%;
    }

    .footer-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .main-nav {
        padding: 0 16px;
    }

    .footer-container {
        padding: 32px 16px 16px;
    }

    .footer-links {
        flex-direction: column;
        gap: 24px;
    }

    .footer-header h3 {
        font-size: 20px;
    }
}

/* ========================================
   REVIEW PAGE STYLES
   ======================================== */

/* Review Settings Section */
.review-settings-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.settings-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 768px) {
    .settings-row {
        grid-template-columns: 1fr;
    }
}

.setting-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-field .field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    text-transform: none;
    letter-spacing: 0.5px;
}

.info-icon {
    font-size: 12px;
    color: var(--text-light);
    cursor: help;
}

.field-hint {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 4px;
}

/* Checkbox Group - Horizontal */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--secondary);
    cursor: pointer;
    position: relative;
    padding-left: 28px;
}

.checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
}

.checkbox-item .checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--white);
    border: 2px solid var(--border-strong);
    border-radius: 4px;
    transition: all 0.15s ease;
}

.checkbox-item input[type="checkbox"]:checked~.checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

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

.checkbox-item input[type="checkbox"]:checked~.checkmark::after {
    display: block;
}

/* Email Tags Input */
.email-tags-input {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    min-height: 48px;
    transition: border-color 0.2s ease;
}

.email-tags-input:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.email-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--secondary);
}

.email-tag .remove-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 16px;
    cursor: pointer;
    transition: color 0.15s ease;
}

.email-tag .remove-tag:hover {
    color: #DC2626;
}

.email-input {
    flex: 1;
    min-width: 180px;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--secondary);
    background: transparent;
}

.email-input::placeholder {
    color: var(--text-light);
}

.email-counter {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 6px;
}

/* Plan Details */
.reach-header {
    margin: 10px 0 18px;
}

.reach-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #111827;
    line-height: 1.2;
    margin: 0 0 8px 0;
}

.reach-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    margin: 0;
    line-height: 1.5;
}

.plan-details-section {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 32px;
}

.plan-option {
    display: block;
    position: relative;
}

.plan-choice {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.plan-card {
    position: relative;
    display: block;
    width: 100%;
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 18px;
    padding: 24px 26px;
    cursor: pointer;
    overflow: visible;
}

.plan-option .plan-choice:focus-visible+.plan-card {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 2px;
}

.plan-option .plan-choice:checked+.plan-card {
    border-color: var(--primary);
}

.plan-option .plan-choice:checked+.plan-card {
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.12);
}

.plan-option .plan-choice:checked+.plan-card .plan-radio {
    border-color: var(--primary);
}

.plan-option .plan-choice:checked+.plan-card .plan-radio::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 999px;
    background: var(--primary);
}

.plan-option .plan-choice:checked+.plan-card .plan-price {
    color: var(--primary);
}

.plan-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.plan-left {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.plan-radio {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid #9CA3AF;
    margin-top: 2px;
    flex-shrink: 0;
    position: relative;
    background: var(--white);
}

.plan-radio.filled {
    border-color: var(--primary);
}

.plan-radio.filled::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 999px;
    background: var(--primary);
}

.plan-headings {
    min-width: 0;
}

.plan-title {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.plan-subtitle {
    margin-top: 6px;
    font-size: 15px;
    font-weight: 500;
    color: #6B7280;
    line-height: 1.4;
}

.plan-price {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
    margin-top: 2px;
}

.plan-card.selected .plan-price {
    color: var(--primary);
}

.plan-features {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.plan-features li {
    position: relative;
    padding-left: 26px;
    font-size: 15px;
    font-weight: 500;
    color: #6B7280;
    line-height: 1.35;
}

.plan-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: #22C55E;
    font-weight: 900;
}

.plan-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 56px;
    margin-top: 16px;
}

.plan-card.recommended {
    border: 1px solid #E5E7EB;
    box-shadow: none;
    padding-top: 28px;
}

.plan-option .plan-choice:checked+.plan-card.recommended {
    border: 2px solid var(--primary);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
}

.plan-badge {
    position: absolute;
    top: -14px;
    right: 18px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
    letter-spacing: 0.4px;
    z-index: 2;
}

.plan-billing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
    padding: 6px;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
}

.plan-billing-option {
    position: relative;
    display: block;
}

.plan-billing-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.plan-billing-option label {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    color: #374151;
    background: transparent;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    text-align: center;
    flex-wrap: wrap;
    position: relative;
    margin-top: 6px;
}

.plan-billing-option input[type="radio"]:focus-visible+label {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 2px;
}

.plan-billing-option input[type="radio"]:checked+label {
    background: var(--white);
    border-color: rgba(37, 99, 235, 0.35);
    color: #111827;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06), inset 3px 0 0 var(--primary);
}

.plan-billing-amount {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.plan-billing-savings {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: #DCFCE7;
    color: #16A34A;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    letter-spacing: 0.2px;
    margin-left: 2px;
    white-space: nowrap;
}

.plan-billing-term {
    font-size: 13px;
    font-weight: 600;
    color: #6B7280;
}

.plan-billing-option input[type="radio"]:checked+label .plan-billing-term {
    color: #374151;
}

.stripe-embed-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    border-radius: 14px;
    border: 1px dashed #CBD5E1;
    background: #F8FAFC;
    color: #64748B;
    font-size: 14px;
    font-weight: 600;
    margin: 18px 0 24px;
}

@media (max-width: 768px) {
    .reach-title {
        font-size: 22px;
    }

    .reach-subtitle {
        font-size: 13px;
    }

    .plan-features-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .plan-billing {
        grid-template-columns: 1fr;
    }

    .plan-title {
        font-size: 18px;
    }

    .plan-subtitle,
    .plan-features li {
        font-size: 14px;
    }
}

/* Order Details Card */
.order-details-card {
    background: var(--white);
    border-radius: 16px;
    padding: 0;
    margin-bottom: 24px;
    border: 1px solid #E5E7EB;
}

.order-details-title {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    letter-spacing: 0.2px;
    padding: 18px 22px;
    margin: 0;
    background: #F3F4F6;
    border-bottom: 1px solid #E5E7EB;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.order-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 44px;
    padding: 20px 22px 24px;
}

@media (max-width: 480px) {
    .order-details-grid {
        grid-template-columns: 1fr;
    }
}

.order-detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-detail-label {
    font-size: 12px;
    font-weight: 700;
    color: #9CA3AF;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.order-detail-value {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.order-detail-value.package-type {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 10px;
    background: #EAFBF2;
    color: #16A34A;
}

.order-detail-value.price {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

/* Payment Layout – Two Column (Premium) / Single Column (Free) */
.payment-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.payment-layout.free-plan {
    grid-template-columns: 1fr;
}

.stripe-embed-column {
    display: block;
}

.stripe-embed-column .stripe-embed-placeholder {
    height: 100%;
    min-height: 280px;
    margin: 0;
}

.order-summary-column .order-details-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Stack the grid to 1-col inside premium's narrower column */
.payment-layout:not(.free-plan) .order-details-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 22px 20px;
}

.payment-layout:not(.free-plan) .order-detail-value {
    font-size: 15px;
}

.payment-layout:not(.free-plan) .order-detail-value.price {
    font-size: 20px;
}

.payment-layout:not(.free-plan) .order-detail-value.package-type {
    padding: 5px 10px;
    font-size: 14px;
}

/* Voucher Section */
.voucher-section {
    padding: 16px 22px 0;
}

.voucher-label {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px 0;
    text-align: left;
}

.voucher-input-row {
    display: flex;
    gap: 8px;
}

.voucher-input {
    flex: 1;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--secondary);
    background: var(--white);
    transition: border-color 0.2s;
}

.voucher-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.voucher-input::placeholder {
    color: var(--text-light);
}

.voucher-apply-btn {
    height: 42px;
    padding: 0 20px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.voucher-apply-btn:hover {
    background: var(--primary-dark);
}

/* Order Summary Lines */
.order-summary-lines {
    padding: 16px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.order-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-summary-label {
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
}

.order-summary-value {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.order-summary-total {
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: 4px;
}

.order-summary-total .order-summary-label {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}

.order-summary-total .order-summary-value {
    font-size: 18px;
    font-weight: 900;
    color: #111827;
}

@media (max-width: 1100px) {
    .payment-layout {
        grid-template-columns: 1fr;
    }
}

/* Terms Checkbox Section */
.terms-checkbox-section {
    background: #EEF4FB;
    border: 1px solid #D6E4F2;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

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

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

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

.terms-checkbox input[type="checkbox"]:checked~.checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

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

.terms-checkbox input[type="checkbox"]:checked~.checkmark::after {
    display: block;
}

.terms-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--secondary);
}

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

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

/* ========== REGISTRATION STEP STYLES ========== */

.registration-step .registration-login-row {
    display: flex;
    justify-content: flex-start;
    margin: 0 0 16px 0;
}

/* Country Code Custom Select */
.country-code-select {
    position: relative;
    width: 100%;
}

.country-code-select .country-code-native {
    display: none;
}

.country-code-trigger {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.country-code-trigger:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.country-code-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    padding: 10px;
    z-index: 40;
    display: none;
}

.country-code-select.open .country-code-dropdown {
    display: block;
}

.country-code-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-gray);
    margin-bottom: 10px;
}

.country-code-search i {
    color: var(--text-gray);
    font-size: 14px;
}

.country-code-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--secondary);
    width: 100%;
}

.country-code-options {
    max-height: 220px;
    overflow-y: auto;
}

.country-code-option {
    width: 100%;
    text-align: left;
    border: 1px solid transparent;
    background: var(--white);
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--secondary);
}

.country-code-option:hover {
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.18);
}

.country-code-option.is-selected {
    background: rgba(37, 99, 235, 0.10);
    border-color: rgba(37, 99, 235, 0.30);
}

.country-code-empty {
    padding: 12px;
    border-radius: 10px;
    background: var(--bg-gray);
    color: var(--text-gray);
    font-size: 13px;
}

/* Phone Input Row */
.registration-step .phone-input-row {
    display: grid;
    grid-template-columns: minmax(100px, 140px) 1fr;
    gap: 10px;
}

.registration-step .phone-input-row .phone-prefix,
.registration-step .phone-input-row .phone-number {
    border-radius: 10px;
    border-right: 1px solid var(--border-strong);
}

.registration-step .phone-input-row .phone-prefix:disabled {
    background: var(--bg-gray);
    color: var(--text-gray);
}

@media (max-width: 480px) {
    .registration-step .phone-input-row {
        grid-template-columns: 88px 1fr;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .registration-step .registration-login-row {
        justify-content: flex-start;
        margin: 0 0 16px 0;
    }
}
.bg-white {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-white-rgb), var(--bs-bg-opacity)) !important;
    padding:10px;
}