@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #2B7A78 0%, #3AAFA9 50%, #2B7A78 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Loader */
.page-loader {
    position: fixed;
    inset: 0;
    background: #3AAFA9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Main Container */
.main-container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.main-container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Banner */
.hero-banner {
    background: #E8E8E8;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    position: relative;
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.5s;
}

.hero-banner img.loaded {
    opacity: 1;
}

/* Form Container - Menyatu dengan banner */
.form-wrapper {
    background: white;
    padding: 24px;
}

.form-container {
    background: white;
}

/* Input Styling */
.input-field {
    background: #F5F5F5;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 12px 16px;
    width: 100%;
    font-size: 14px;
    transition: all 0.2s;
    outline: none;
}

.input-field:focus {
    border-color: #3AAFA9;
    background: white;
    box-shadow: 0 0 0 3px rgba(58, 175, 169, 0.1);
}

.input-field.error {
    border-color: #EF4444;
    background: #FEF2F2;
}

.input-group {
    display: flex;
    align-items: center;
    background: #F5F5F5;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
}

.input-group:focus-within {
    border-color: #3AAFA9;
    background: white;
    box-shadow: 0 0 0 3px rgba(58, 175, 169, 0.1);
}

.input-group.error {
    border-color: #EF4444;
}

.input-prefix {
    padding: 12px 16px;
    background: #EBEBEB;
    border-right: 1px solid #E0E0E0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
}

/* Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #3AAFA9;
    cursor: pointer;
}

.checkbox-wrapper label {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
    cursor: pointer;
}

/* Button */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: #3AAFA9;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover:not(:disabled) {
    background: #2B7A78;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(43, 122, 120, 0.3);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* OTP Inputs */
.otp-container {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.otp-input {
    width: 48px;
    height: 56px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    transition: all 0.2s;
    background: white;
}

.otp-input:focus {
    border-color: #3AAFA9;
    outline: none;
    transform: scale(1.05);
}

.otp-input.filled {
    border-color: #3AAFA9;
    background: #F0FDFA;
}

.otp-input.error {
    border-color: #EF4444;
    animation: shake 0.5s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #FBBF24;
    color: #1F2937;
    padding: 14px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
    max-width: 90vw;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-close {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Testimonials Section - Fixed */
.testimonials-wrapper {
    margin-top: 20px;
    position: relative;
    height: 280px;
    overflow: hidden;
    /* mask-image: linear-gradient(to bottom,
            transparent 0%,
            black 8%,
            black 92%,
            transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom,
            transparent 0%,
            black 8%,
            black 92%,
            transparent 100%); */
}

.testimonials-track {
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: scrollUp 25s linear infinite;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.testimonial-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.testimonial-info {
    min-width: 0;
    flex: 1;
}

.testimonial-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testimonial-status {
    font-size: 12px;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.testimonial-status i {
    font-size: 14px;
}

/* Step Transitions */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
}

.password-toggle:hover {
    color: #666;
}

/* Loading Spinner in Button */
.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Error icon in input */
.error-icon {
    color: #EF4444;
    margin-right: 12px;
    display: none;
}

.input-group.error .error-icon {
    display: block;
}

/* Responsive */
@media (max-width: 480px) {
    .testimonials-wrapper {
        height: 240px;
    }
}