* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}

.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.logo-header {
    background: #1e40af;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-header img { height: 28px; width: auto; }
.logo-header h4 {
    margin: 0;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav a {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
}

.nav-website {
    color: #ffffff;
    background: rgba(255,255,255,0.15);
}

.nav-signin {
    color: #1e40af;
    background: #ffffff;
}

/* Hide title section - cleaner */
.title-section {
    display: none;
}

/* Content Area */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    background: #ffffff;
}

/* Tenant Info - Minimal */
.tenant-info {
    background: #f8fafc;
    padding: 12px 16px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.tenant-info .name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.tenant-info .company {
    color: #64748b;
    font-size: 0.8rem;
}

/* Step Progress Bar */
.vc-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    gap: 8px;
    background: #f8fafc;
    width: 100%;
}

.vc-step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.vc-step.active {
    color: #1e40af;
    font-weight: 600;
}

.vc-step.done {
    color: #16a34a;
}

.vc-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    background: #e2e8f0;
    color: #94a3b8;
}

.vc-step.active .vc-step-num {
    background: #1e40af;
    color: #ffffff;
}

.vc-step.done .vc-step-num {
    background: #16a34a;
    color: #ffffff;
}

.vc-step-line {
    width: 30px;
    height: 2px;
    background: #e2e8f0;
}

.vc-step-line.done {
    background: #16a34a;
}

/* Step Panels */
.vc-panel {
    display: none;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    flex: 1;
}

.vc-panel.active {
    display: flex;
    flex-direction: column;
}

/* Step 1: Language Selection */
.lang-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
    margin-bottom: 20px;
}

.lang-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.lang-btn {
    padding: 14px 10px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    border-color: #1e40af;
}

.lang-btn.active {
    border-color: #1e40af;
    background: #eff6ff;
}

.lang-btn .native {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}

.lang-btn .english {
    display: block;
    font-size: 0.7rem;
    color: #64748b;
}

/* Step 2: Listen Audio */
.listen-section {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.selected-lang-display {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 8px;
}

.selected-lang-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 24px;
}

.audio-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: #1e40af;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.audio-btn:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

.audio-btn.playing {
    background: #dc2626;
}

.audio-status {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 24px;
}

.script-preview {
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #374151;
    max-height: 150px;
    overflow-y: auto;
}

/* Step 3: Record Video */
.record-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #1e293b;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#videoPreview {
    transform: scaleX(-1);
}

.video-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    color: #ffffff;
    text-align: center;
}

.video-overlay i {
    font-size: 40px;
    color: #60a5fa;
    margin-bottom: 10px;
}

.video-overlay p {
    font-size: 0.9rem;
    color: #94a3b8;
}

.recording-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #dc2626;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.recording-indicator .dot {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.timer-display {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: monospace;
}

.countdown-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    z-index: 10;
}

.countdown-number {
    font-size: 60px;
    font-weight: 700;
    color: #fbbf24;
}

.script-teleprompter {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #1e293b;
    flex: 1;
    overflow-y: auto;
    margin-bottom: 10px;
}

/* Buttons */
.btn-nav {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
}

.btn-next, .btn-back-step {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-next {
    background: #1e40af;
    color: #ffffff;
}

.btn-next:hover {
    background: #1d4ed8;
}

.btn-next:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.btn-back-step {
    background: #f1f5f9;
    color: #475569;
}

.btn-back-step:hover {
    background: #e2e8f0;
}

.btn-record-action {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
}

.btn-start { background: #dc2626; }
.btn-start:hover { background: #b91c1c; }
.btn-stop { background: #16a34a; }
.btn-stop:hover { background: #15803d; }
.btn-submit { background: #1e40af; }
.btn-submit:hover { background: #1d4ed8; }
.btn-retake { background: #64748b; margin-top: 8px; }
.btn-retake:hover { background: #475569; }

/* Step 4: Success */
.success-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.success-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.success-icon i {
    font-size: 32px;
    color: #16a34a;
}

.success-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.success-text {
    font-size: 0.9rem;
    color: #64748b;
}

/* Upload Progress */
.upload-progress {
    display: none;
    margin-top: 10px;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #1e40af;
    transition: width 0.3s;
}

/* Footer */
.footer-note {
    text-align: center;
    color: #94a3b8;
    font-size: 0.75rem;
    padding: 12px;
    background: #f8fafc;
}

/* Mobile */
@media (max-width: 400px) {
    .lang-grid { grid-template-columns: repeat(2, 1fr); }
    .vc-panel { padding: 16px; }
}

/* Verification Form Styles */
.verify-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    margin: 20px;
}

.verify-header {
    padding: 14px;
    text-align: center;
    background: #1e40af;
}

.verify-header h3 {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.verify-body {
    padding: 20px;
}

.step-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    gap: 6px;
}

.s-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.s-dot.active { background: #1e40af; color: #fff; }
.s-dot.done { background: #16a34a; color: #fff; }
.s-dot.pending { background: #e2e8f0; color: #94a3b8; }
.s-line { width: 30px; height: 2px; background: #e2e8f0; }
.s-line.done { background: #16a34a; }

.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: #374151; margin-bottom: 0.4rem; }
.form-input {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
}
.form-input:focus { border-color: #1e40af; }

.btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}
.btn-primary { background: #1e40af; color: #fff; }
.btn-primary:disabled { background: #cbd5e1; }

.msg { padding: 0.6rem; border-radius: 6px; font-size: 0.8rem; margin-bottom: 0.8rem; display: none; }
.msg-error { background: #fef2f2; color: #dc2626; }
.msg-info { background: #eff6ff; color: #1e40af; }

.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #fff; border-top-color: transparent; border-radius: 50%; animation: spin 0.6s linear infinite; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

.step-section { display: none; }
.step-section.active { display: block; }

.phone-display-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    text-align: center;
}
.phone-display-box .label { font-size: 0.75rem; color: #64748b; }
.phone-display-box .number { font-size: 1.1rem; font-weight: 700; color: #1e293b; }

.phone-input-row { display: flex; gap: 0.4rem; }
.phone-prefix {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.7rem;
    font-weight: 600;
    color: #374151;
}

.tenant-info-box {
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 0.6rem;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    color: #92400e;
}

.btn-back {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 0.5rem;
}

/* Fullscreen Upload Loader */
.upload-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
}

.upload-loader.active {
    display: flex;
}

.loader-content {
    text-align: center;
}

/* Fullscreen Upload Loader */
.upload-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
}
.upload-loader.active {
    display: flex;
}
.loader-content {
    text-align: center;
}
.loader-logo {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
}

.loader-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.loader-track {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 6;
}

.loader-progress {
    fill: none;
    stroke: #1e40af;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.3s ease;
}

.loader-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e40af;
}

.loader-text {
    font-size: 1rem;
    color: #64748b;
    margin-top: 8px;
}

.loader-text.success {
    color: #16a34a;
    font-weight: 600;
}

/* Success Messages */
.success-text-en {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 4px;
}

.success-email {
    margin-top: 20px;
    padding: 12px 16px;
    background: #f0f9ff;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #1e40af;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.success-email i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.email-en {
    font-size: 0.8rem;
    color: #64748b;
}

.btn-dashboard {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 24px;
    background: #1e40af;
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-dashboard:hover {
    background: #1d4ed8;
    color: #ffffff;
}

/* Thank You Section */
.thank-you-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.thank-you-logo {
    margin-bottom: 10px;
}

.thank-you-logo img {
    height: 40px;
    width: auto;
}

.thank-you-text {
    font-size: 0.85rem;
    color: #64748b;
}

.thank-you-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e40af;
    margin-top: 2px;
}

/* Verification Form Additions */
.step-title {
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 12px;
    font-weight: 500;
}

.verified-success {
    text-align: center;
    padding: 20px 0;
}

.verified-icon {
    font-size: 3rem;
    color: #16a34a;
    margin-bottom: 10px;
}

.verified-text {
    font-size: 1rem;
    color: #16a34a;
    font-weight: 600;
    margin-bottom: 4px;
}

.verified-name {
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 700;
}

.btn-start-recording {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    font-size: 1rem;
    margin-top: 20px;
    text-decoration: none;
}

.btn-start-recording:hover {
    color: #ffffff;
}