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

:root {
    --primary-color: #E6221E;
    --left-side-bg: url('./image/bg-regis.png') no-repeat center center;
}

[data-tenant="soundbox"] {
    --primary-color: #002F6C;
    --left-side-bg: linear-gradient(to bottom right, #002F6C, #0D2545);
}

.font-thin {
    font-weight: 100;
    font-style: normal;
}

.font-extralight {
    font-weight: 200;
    font-style: normal;
}

.font-light {
    font-weight: 300;
    font-style: normal;
}

.font-regular {
    font-weight: 400;
    font-style: normal;
}

.font-medium {
    font-weight: 500;
    font-style: normal;
}

.font-semibold {
    font-weight: 600;
    font-style: normal;
}

.font-bold {
    font-weight: 700;
    font-style: normal;
}

.font-extrabold {
    font-weight: 800;
    font-style: normal;
}

.font-black {
    font-weight: 900;
    font-style: normal;
}

.font-thin-italic {
    font-weight: 100;
    font-style: italic;
}

.font-extralight-italic {
    font-weight: 200;
    font-style: italic;
}

.font-light-italic {
    font-weight: 300;
    font-style: italic;
}

.font-regular-italic {
    font-weight: 400;
    font-style: italic;
}

.font-medium-italic {
    font-weight: 500;
    font-style: italic;
}

.font-semibold-italic {
    font-weight: 600;
    font-style: italic;
}

.font-bold-italic {
    font-weight: 700;
    font-style: italic;
}

.font-extrabold-italic {
    font-weight: 800;
    font-style: italic;
}

.font-black-italic {
    font-weight: 900;
    font-style: italic;
}

body {
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
    font-family: "Barlow", sans-serif;
    background: linear-gradient(135deg, #002F6C 0%, #001e47 100%);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
}

/* Left Side - Promotional Content / Slider */
.left-side {
    background: var(--left-side-bg);
    background-size: cover;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    height: 100vh;
    width: 50%;
}


.right-side.right-side-src-complete {
    position: static;
    float: right;
    width: 100%;
}

/* ===== Image Slider Styles ===== */
.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.slider-slide.active {
    opacity: 1;
    z-index: 1;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Slider Dots Navigation — Modern pill / glassmorphism style */
.slider-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.45);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    position: relative;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.75);
    transform: scale(1.15);
}

.slider-dot.active {
    width: 28px;
    border-radius: 50px;
    background: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Slider Progress Bar */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 20;
    overflow: hidden;
    pointer-events: none;
}

.slider-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), #fff);
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

.left-side::before {
    display: none;
}

.right-side.right-side-src::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-color: rgba(0, 0, 0, 0.4);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    z-index: -5;
}

.right-side.right-side-src::before {
    content: '';
    position: absolute;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-image: url('./image/bg-regis.png');
    background-color: green;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    z-index: -5;
    transform: scaleX(-1)
}

.right-side {
    width: 100%;
    display: flex;
    justify-content: end;
    min-height: 100vh;
    position: relative;
}

.right-side .right-side-wrapper {
    width: 50%;
}

.promo-content {
    position: relative;
    z-index: 1;
    width: min(600px, 90%);
}

.wrapper-content-left {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wrapper-content-left .content-2 {
    max-width: 85%;
    display: flex;
}

.powered-by {
    margin-bottom: 1rem;
}

.logo-section {
    gap: 1rem;
    margin-top: 2rem;
}

.logo-img {
    max-height: 40px;
    width: auto;
    margin-bottom: 20px;
}

.logo-img-src {
    max-height: 280px;
    width: auto;
    margin-bottom: 5px;
}

.device-img {
    max-height: 200px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.device-img span {
    line-height: 1;
    font-size: 0.75rem;
    font-weight: 300;
}

.banner-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.qr-section {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.qr-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.qr-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.qr-icon {
    font-size: 24px;
    color: white;
}

.qr-text {
    font-weight: 600;
    font-size: 16px;
}

.promo-title {
    font-size: 28px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.promo-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.6;
}

.login-text {
    font-size: 14px;
    opacity: 0.8;
}

.login-text a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

/* Right Side - Registration Form */
.right-side {
    padding: 0;
}

.right-side:not(.right-side-src) {
    background-color: #f8f9fa;
}

.form-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
}

/* Step Progress - Simple */
.step-progress {
    text-align: center;
    margin-bottom: 30px;
}

.step-list {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.step-item {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-item.active {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.step-item.completed {
    background: #28a745;
    color: white;
}

/* Form Container */
.form-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

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

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

/* Card Styles */
.card {
    border: none;
    box-shadow: none;
}

.card-header {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 25px 30px;
    text-align: center;
    border-radius: 0;
}

.card-header h4 {
    margin: 0;
    font-size: 22px;
}

.card-body {
    padding: 30px;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: #002F6C;
    box-shadow: 0 0 0 0.2rem rgba(0, 47, 108, 0.25);
    outline: none;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: none;
    font-size: 13px;
    color: #dc3545;
    margin-top: 5px;
}

.form-control.is-invalid~.invalid-feedback,
.form-select.is-invalid~.invalid-feedback {
    display: block;
}

/* Checkbox and Radio Styles */
.form-check {
    margin-bottom: 15px;
}

.form-check-input {
    margin-top: 0.25rem;
}

.form-check-input:checked {
    background-color: #777d84;
    border-color: #777d84;
}

.form-check-input:focus {
    border-color: #002F6C;
    box-shadow: 0 0 0 0.2rem rgba(0, 47, 108, 0.25);
}

.form-check-input.is-invalid {
    border-color: #dc3545;
}

.form-check-input.is-invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Document Section Styles */
.document-section {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    background: #f8f9fa;
}

.document-section h5 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    font-size: 1.15rem;
    border-bottom: 2px dashed #dee2e6;
    margin-bottom: 10px;
}

/* File Input Styles */
input[type="file"] {
    border: 2px dashed #dee2e6;
    background: white;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

input[type="file"]:hover {
    border-color: #002F6C;
    background: #f0f4ff;
}

input[type="file"]:focus {
    border-color: #002F6C;
    box-shadow: 0 0 0 0.2rem rgba(0, 47, 108, 0.25);
    outline: none;
}

input[type="file"].is-invalid {
    border-color: #dc3545;
    background: #fff5f5;
}

/* Navigation Buttons */
.form-navigation {
    padding: 25px 30px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.btn {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
}

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

.btn-outline-primary {
    background: transparent;
    border: 1.5px solid var(--primary-color) !important;
    color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus-visible,
.btn-outline-primary:active {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 34, 30, 0.3);
}

.check-registration-btn {
    width: min(300px, 100%);
    margin: auto;
}

.btn-outline-light {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible,
.btn-outline-light:active {
    background: #fff;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 47, 108, 0.3);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary:active {
    background: var(--primary-color);
    opacity: 0.75;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 47, 108, 0.3);
}

.btn-primary:disabled {
    background: var(--primary-color);
    opacity: 0.75;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover,
.btn-secondary:focus-visible,
.btn-secondary:active {
    background: #6c757d;
    opacity: 0.75;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

.btn-success {
    background: #002F6C;
    color: white;
}

.btn-success:hover,
.btn-success:focus-visible,
.btn-success:active {
    background: #002F6C;
    opacity: 0.75;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 47, 108, 0.3);
}

label.required::after {
    content: '*';
    display: inline-block;
    color: #dc3545;
    margin-left: 3px;
}

/* Required Field Indicator */
.text-danger {
    color: #002F6C !important;
}

/* Link Styles */
.text-primary {
    color: #002F6C !important;
    text-decoration: none;
}

.text-primary:hover {
    text-decoration: underline;
}

/* Small Text */
.form-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

/* Input Group Styles */
/* .input-group-text {
    background: #002F6C;
    color: white;
    border: 2px solid #002F6C;
    font-weight: 600;
}

.input-group .form-control {
    border-left: none;
} */

.input-group .form-control:focus {
    border-color: var(--bs-muted);
    box-shadow: none;
}

/* Hide validation messages initially */
.invalid-feedback {
    display: none !important;
}

.form-control.is-invalid~.invalid-feedback,
.form-select.is-invalid~.invalid-feedback,
.form-check-input.is-invalid~.invalid-feedback {
    display: block !important;
}

.get-location-button-group {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.get-location-button-group>* {
    margin-bottom: 0 !important;
}

/* Responsive Design */
@media(max-width: 1400px) {
    .promo-title {
        font-size: 20px;
    }
}

@media(max-width: 1280px) {
    .logo-img-src {
        max-height: 100px;
    }

    .wrapper-content-left .content-2 {
        flex-direction: column;
    }

    .promo-title {
        font-size: 21px;
        text-align: center;
    }

    .promo-subtitle {
        text-align: center;
    }
}

@media(max-width: 1200px) {
    .logo-img-src {
        max-height: 140px;
    }

    .wrapper-content-left .content-2 {
        flex-direction: column;
    }
}

@media (max-width: 992px) {
    .left-side {
        width: 100%;
        position: relative;
        height: 50vh;
    }

    .slider-track {
        height: 100%;
    }

    .slider-dots {
        bottom: 20px;
    }

    .right-side {
        position: relative;
        min-height: auto;
    }

    .right-side.right-side-src::before,
    .right-side.right-side-src::after {
        width: 100%;
    }

    .mobile-hide {
        display: none;
    }

    .form-wrapper {
        padding: 80px 20px 30px 20px;
    }


    .right-side .right-side-wrapper {
        width: 100%;
        padding: 2.5rem 0;
    }

    .wrapper-content-left .content-2 {
        flex-direction: column;
    }

    .promo-title {
        text-align: center;
    }

    .promo-subtitle {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .form-wrapper {
        padding: 20px 15px;
    }

    .card-body {
        padding: 20px;
    }

    .form-navigation {
        padding: 20px;
    }

    .card-header h4 {
        font-size: 20px;
    }

    .promo-title {
        font-size: 15px;
        text-align: center;
    }

    .promo-subtitle {
        line-height: 1.2;
        text-align: center;
    }

    .step-item {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    /* Logo responsive untuk tablet */
    .logo-section {
        gap: 0.2rem;
        margin-top: 1rem;
    }

    .logo-img {
        max-height: 30px;
    }

    .logo-img-src {
        max-height: 140px;
    }

    .device-img img {
        max-height: 200px;
    }
}

@media (max-width: 576px) {
    .form-navigation .d-flex {
        flex-direction: column;
        gap: 10px;
    }

    .form-navigation .ms-auto {
        margin-left: 0 !important;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .card-header {
        padding: 20px;
    }

    .card-body {
        padding: 15px;
    }

    .step-list {
        gap: 10px;
    }

    /* Logo responsive untuk mobile kecil */
    .logo-img {
        max-height: 25px;
    }

    .logo-img-src {
        max-height: 90px;
    }

    .device-img {
        max-height: 150px;
    }

    .device-img img {
        max-height: 170px;
    }

    .powered-by-img img {
        max-height: 30px;
    }

    .get-location-button-group button:nth-child(1) {
        order: 3;
    }

    .get-location-button-group button:is(:nth-child(2), :nth-child(3)) {
        flex: 1;
    }
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 47, 108, 0.25);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #002F6C;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #001e47;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.privacy-content {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    line-height: 1.6;
    color: #111;
}

.privacy-content h1 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.privacy-content h2 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem 0;
    color: #444;
    font-weight: 600;
}

.privacy-content .intro {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.privacy-content ul {
    margin: 0.5rem 0 1rem 1.2rem;
    padding-left: 0;
}

.privacy-content li {
    margin-bottom: 0.3rem;
}

.text-subtitle {
    line-height: 1.1rem;
    font-size: 0.8rem;
    margin-top: 7.5px;
    margin-bottom: 0;
}

.form-sub-section {
    padding: 1rem 0;
    border-top: 1px dashed #dee2e6;
    margin-bottom: 5px;
}