/* ============================================
   VISITOR REGISTRATION STYLES
   BITA Expo 2026 Theme - Light Professional
   ============================================ */

:root {
    --bita-blue: #0091D5;
    --bita-blue-dark: #007BB8;
    --bita-blue-light: #e6f4fa;
    --bita-yellow: #FBBA18;
    --bita-yellow-hover: #E5A815;
    --bita-yellow-light: #fff8e6;
    --text-dark: #1a1a1a;
    --text-medium: #555;
    --text-light: #888;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-light: #e0e0e0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    min-height: 100vh;
    color: var(--text-dark);
}

/* Container */
.registration-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.reg-header {
    background: var(--bg-white);
    padding: 16px 24px;
    border-bottom: 3px solid var(--bita-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-section img {
    height: 50px;
    width: auto;
}

.logo-section h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--bita-blue);
    margin-bottom: 0;
}

.logo-section h1 span {
    color: var(--bita-yellow);
}

.logo-section p {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
}

.header-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--bita-blue);
    text-decoration: none;
    padding: 8px 16px;
    background: var(--bita-blue-light);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.header-link:hover {
    background: var(--bita-blue);
    color: white;
}

/* Main Content */
.reg-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Registration Card */
.reg-card {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 460px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.reg-card-header {
    padding: 28px 30px 24px;
    text-align: center;
    background: linear-gradient(135deg, var(--bita-blue-light) 0%, var(--bg-white) 100%);
    border-bottom: 1px solid var(--border-light);
}

.reg-card-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.reg-card-header p {
    font-size: 14px;
    color: var(--text-light);
}

/* Form */
.reg-form {
    padding: 28px;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.required {
    color: #e53e3e;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: var(--bita-blue);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(0, 145, 213, 0.1);
}

.form-group input::placeholder {
    color: #aaa;
}

/* Mobile Input Group */
.mobile-input-group {
    display: flex;
    align-items: stretch;
}

.country-code {
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: var(--bita-blue);
    color: var(--bg-white);
    border: 2px solid var(--bita-blue);
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-weight: 600;
}

.mobile-input-group input {
    border-radius: 0 8px 8px 0;
}

/* OTP Section */
.otp-section {
    text-align: center;
}

.otp-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.otp-section h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.otp-info {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 28px;
}

.otp-info span {
    font-weight: 600;
    color: var(--bita-blue);
}

/* OTP Inputs */
.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 16px;
}

.otp-input {
    width: 58px;
    height: 58px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    background: #fafafa;
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.otp-input:focus {
    outline: none;
    border-color: var(--bita-blue);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(0, 145, 213, 0.15);
}

.otp-hint {
    font-size: 12px;
    color: #888;
    margin-bottom: 28px;
    background: #fff9e6;
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid var(--bita-yellow);
}

/* Payment Section */
.payment-section {
    text-align: center;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 28px;
    border: 1px solid #a5d6a7;
}

.check-icon {
    width: 22px;
    height: 22px;
    background: #4caf50;
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.payment-info {
    margin-bottom: 28px;
}

.payment-info h3 {
    font-size: 13px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.price-display {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price {
    font-size: 52px;
    font-weight: 700;
    color: var(--text-dark);
}

.price.discounted {
    text-decoration: line-through;
    color: #ccc;
    font-size: 24px;
}

.price-free {
    font-size: 20px;
    font-weight: 600;
    color: #4caf50;
    background: #e8f5e9;
    padding: 10px 20px;
    border-radius: 8px;
}

.price-note {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

/* Coupon Section */
.coupon-section {
    margin-bottom: 24px;
    text-align: left;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.coupon-section label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.coupon-input-group {
    display: flex;
    gap: 10px;
}

.coupon-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.coupon-input-group input:focus {
    outline: none;
    border-color: var(--bita-blue);
}

.coupon-message {
    font-size: 13px;
    margin-top: 10px;
    min-height: 20px;
    font-weight: 500;
}

.coupon-message.success {
    color: #2e7d32;
}

.coupon-message.error {
    color: #c62828;
}

.payment-note {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 24px;
    border-left: 4px solid var(--bita-yellow);
}

.payment-note p {
    font-size: 14px;
    color: #f57c00;
    margin: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-full {
    width: 100%;
}

.btn-large {
    padding: 18px 28px;
    font-size: 16px;
}

.btn-primary {
    background: var(--bita-blue);
    color: var(--bg-white);
}

.btn-primary:hover {
    background: var(--bita-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 145, 213, 0.3);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: var(--bita-yellow);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--bita-yellow-hover);
}

.btn-link {
    background: none;
    color: var(--bita-blue);
    padding: 10px;
    font-size: 14px;
}

.btn-link:hover {
    color: var(--bita-blue-dark);
    text-decoration: underline;
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 30px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
}

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

.step-number {
    width: 36px;
    height: 36px;
    background: var(--border-light);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.progress-step.active .step-number {
    background: var(--bita-blue);
    color: var(--bg-white);
    border-color: var(--bita-blue);
}

.progress-step.completed .step-number {
    background: #4caf50;
    color: var(--bg-white);
    border-color: #4caf50;
}

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

.progress-step.active .step-label {
    color: var(--bita-blue);
    font-weight: 600;
}

.progress-step.completed .step-label {
    color: #4caf50;
}

.progress-line {
    width: 60px;
    height: 2px;
    background: var(--border-light);
    margin: 0 12px;
    margin-bottom: 20px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

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

.modal-content {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 420px;
    width: 100%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--bita-blue);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.success-animation {
    margin-bottom: 24px;
}

.success-checkmark {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #4caf50 0%, #43a047 100%);
    color: var(--bg-white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    animation: scaleIn 0.5s ease;
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.modal-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.modal-content p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.terms-note {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-bottom: 16px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.visitor-id-display {
    background: linear-gradient(135deg, var(--bita-blue-light) 0%, #d4effc 100%);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #b3e0f2;
}

.visitor-id-display .label {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.visitor-id {
    font-size: 32px;
    font-weight: 700;
    color: var(--bita-blue);
    letter-spacing: 3px;
}

/* ============================================
   TICKET DESIGN
   ============================================ */

.ticket-modal {
    max-width: 480px;
}

.success-header {
    text-align: center;
    margin-bottom: 24px;
}

.success-header .success-checkmark {
    width: 60px;
    height: 60px;
    font-size: 28px;
    margin-bottom: 16px;
}

.success-header h2 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.success-header p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.ticket-container {
    margin-bottom: 20px;
}

.ticket {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.ticket-header {
    background: linear-gradient(135deg, var(--bita-blue) 0%, #007BB8 100%);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-logo .logo-text {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.ticket-logo .logo-text span {
    color: var(--bita-yellow);
}

.ticket-type {
    background: var(--bita-yellow);
    color: var(--text-dark);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.ticket-body {
    padding: 24px 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.ticket-qr {
    flex-shrink: 0;
    background: white;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.ticket-qr canvas,
.ticket-qr img {
    display: block;
    width: 100px !important;
    height: 100px !important;
}

.ticket-details {
    flex: 1;
    min-width: 0;
}

.ticket-field {
    margin-bottom: 12px;
}

.ticket-field:last-child {
    margin-bottom: 0;
}

.field-label {
    display: block;
    font-size: 10px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.field-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticket-footer {
    background: var(--bg-light);
    padding: 14px 20px;
    border-top: 1px dashed var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-event {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-date,
.event-location {
    font-size: 12px;
    color: var(--text-medium);
}

.ticket-barcode {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 2px;
}

.ticket-terms {
    background: #fff8e1;
    padding: 10px 16px;
    text-align: center;
    border-top: 1px dashed #ffc107;
}

.ticket-terms p {
    font-size: 11px;
    color: #e65100;
    margin: 0;
    font-weight: 600;
}

.ticket-actions {
    margin-bottom: 16px;
}

.email-note {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    margin-top: 10px;
}

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.success-actions .btn {
    flex: none;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: linear-gradient(135deg, #4caf50 0%, #43a047 100%);
}

.toast.error {
    background: linear-gradient(135deg, #f44336 0%, #e53935 100%);
}

/* Responsive */
@media (max-width: 480px) {
    .reg-main {
        padding: 24px 16px;
    }

    .reg-card {
        border-radius: 12px;
    }

    .reg-card-header {
        padding: 24px 20px 20px;
    }

    .reg-card-header h2 {
        font-size: 22px;
    }

    .reg-form {
        padding: 24px 20px;
    }

    .otp-input {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .price {
        font-size: 44px;
    }

    .progress-line {
        width: 40px;
    }

    .success-actions {
        flex-direction: column;
    }
}