* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base font size using clamp for fluid typography */
html {
    font-size: clamp(14px, 2.5vw, 16px);
}

body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(
        135deg,
        #667eea 0%,
        #764ba2 25%,
        #f093fb 50%,
        #f5576c 75%,
        #4facfe 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 3vw, 20px);
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating particles */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    background: #fff;
}
.particle:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 70%;
    left: 80%;
    animation-delay: 2s;
    background: #fbbf24;
}
.particle:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 40%;
    left: 70%;
    animation-delay: 4s;
    background: #10b981;
}
.particle:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 80%;
    left: 20%;
    animation-delay: 1s;
    background: #8b5cf6;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 700px;
}

.card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: clamp(15px, 4vw, 30px);
    padding: clamp(1.5rem, 5vw, 3rem);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.5s;
}

.card:hover::before {
    left: 100%;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.header {
    text-align: center;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.header-icon {
    font-size: clamp(2.5rem, 8vw, 4rem);
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    display: block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

h2 {
    font-weight: 800;
    color: white;
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: clamp(0.25rem, 1vw, 0.5rem);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    font-weight: 300;
}

.form-group {
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.form-group:nth-child(1) {
    animation-delay: 0.1s;
}
.form-group:nth-child(2) {
    animation-delay: 0.2s;
}
.form-group:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

label {
    font-weight: 600;
    color: white;
    margin-bottom: clamp(0.5rem, 2vw, 0.8rem);
    display: flex;
    align-items: center;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

label i {
    margin-right: clamp(8px, 2vw, 10px);
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: #fbbf24;
}

input,
select {
    width: 100%;
    padding: clamp(0.75rem, 2.5vw, 1rem) clamp(0.9rem, 3vw, 1.2rem);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: clamp(10px, 3vw, 15px);
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 500;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

input:focus,
select:focus {
    border-color: #fbbf24;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2);
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

select option {
    background: rgba(30, 41, 59, 0.95);
    color: white;
    padding: 10px;
}

.btn {
    border: none;
    border-radius: clamp(10px, 3vw, 15px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    padding: clamp(0.75rem, 2.5vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: clamp(0.5px, 0.2vw, 1px);
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    box-shadow: 0 8px 30px rgba(107, 114, 128, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(107, 114, 128, 0.6);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.6);
}

.progress-container {
    margin: clamp(1.5rem, 4vw, 2rem) 0;
    padding: clamp(1rem, 3vw, 1.5rem);
    background: rgba(255, 255, 255, 0.08);
    border-radius: clamp(15px, 4vw, 20px);
    backdrop-filter: blur(10px);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    flex-wrap: wrap;
    gap: clamp(0.5rem, 1vw, 1rem);
}

.progress-text {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    display: flex;
    align-items: center;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
}

.progress-text i {
    margin-right: clamp(6px, 1.5vw, 8px);
    color: #fbbf24;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

.progress-count {
    font-weight: 700;
    color: #fbbf24;
    font-size: clamp(1rem, 3vw, 1.2rem);
}

.progress {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    height: clamp(8px, 2vw, 12px);
    overflow: hidden;
    position: relative;
}

.progress-bar {
    background: linear-gradient(90deg, #667eea, #764ba2, #fbbf24);
    background-size: 200% 100%;
    animation: progressShine 2s linear infinite;
    height: 100%;
    width: 0%;
    transition: width 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 50px;
    position: relative;
}

@keyframes progressShine {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.question {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: clamp(1.25rem, 4vw, 2rem);
    border-radius: clamp(15px, 4vw, 25px);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    backdrop-filter: blur(15px);
    transition: all 0.4s ease;
    transform: translateX(100px);
    opacity: 0;
}

.question.active {
    transform: translateX(0);
    opacity: 1;
    animation: slideInQuestion 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes slideInQuestion {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.question:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.question-text {
    font-weight: 600;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    color: white;
    font-size: clamp(0.95rem, 3.5vw, 1.15rem);
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
}

.question-text i {
    margin-right: clamp(10px, 2.5vw, 12px);
    color: #fbbf24;
    font-size: clamp(1.1rem, 3.5vw, 1.3rem);
    margin-top: 2px;
    flex-shrink: 0;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: clamp(1.5rem, 4vw, 2rem);
    gap: clamp(0.75rem, 2vw, 1rem);
    flex-wrap: wrap;
}

.finish-container {
    text-align: center;
    padding: clamp(2rem, 6vw, 3rem) 0;
}

.finish-icon {
    font-size: clamp(3.5rem, 10vw, 5rem);
    color: #10b981;
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

.finish-title {
    font-weight: 800;
    color: white;
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.finish-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    font-weight: 300;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

.w-full {
    width: 100%;
}

.mt-4 {
    margin-top: clamp(0.75rem, 2vw, 1rem);
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .card {
        padding: clamp(1rem, 4vw, 2rem);
        margin: clamp(5px, 2vw, 10px);
        border-radius: clamp(15px, 3vw, 25px);
    }

    h2 {
        font-size: clamp(1.25rem, 6vw, 1.8rem);
    }

    .navigation {
        flex-direction: column;
        gap: clamp(0.75rem, 3vw, 1rem);
    }

    .btn {
        width: 100%;
        min-height: 44px; /* Touch target minimum */
    }

    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: clamp(0.5rem, 2vw, 0.75rem);
    }

    .question-text {
        flex-direction: column;
        align-items: flex-start;
    }

    .question-text i {
        margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .card {
        padding: clamp(0.75rem, 3vw, 1.5rem);
    }

    .header-icon {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    h2 {
        font-size: clamp(1.1rem, 6vw, 1.5rem);
    }

    .subtitle {
        font-size: clamp(0.8rem, 3vw, 0.95rem);
    }

    label {
        font-size: clamp(0.8rem, 3vw, 0.95rem);
    }

    input,
    select {
        padding: clamp(0.6rem, 2vw, 0.75rem);
        font-size: clamp(0.8rem, 3vw, 0.9rem);
    }

    .btn {
        font-size: clamp(0.8rem, 3vw, 0.9rem);
        padding: clamp(0.6rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
    }

    .question-text {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
    }

    .progress-text {
        font-size: clamp(0.7rem, 2.5vw, 0.8rem);
    }

    .progress-count {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }
}

@media (max-width: 320px) {
    .card {
        padding: clamp(0.5rem, 3vw, 1rem);
    }

    .finish-icon {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

    .finish-title {
        font-size: clamp(1.1rem, 5vw, 1.3rem);
    }

    .finish-subtitle {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
    }
}
/* CSS khusus untuk Step Saran */
#step-saran {
    animation: slideInSaran 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes slideInSaran {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#step-saran .form-group {
    background: rgba(255, 255, 255, 0.05);
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: clamp(15px, 4vw, 20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

#step-saran .form-group::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    animation: shimmerTop 3s ease-in-out infinite;
}

@keyframes shimmerTop {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

#step-saran label {
    color: #fbbf24;
    font-weight: 700;
    text-shadow: 0 2px 15px rgba(251, 191, 36, 0.3);
    margin-bottom: clamp(1rem, 3vw, 1.2rem);
}

#step-saran label i {
    color: #fbbf24;
    animation: pulse 2s infinite;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

#saran {
    width: 100%;
    padding: clamp(1rem, 3vw, 1.25rem);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: clamp(12px, 3vw, 15px);
    font-size: clamp(0.9rem, 3vw, 1rem);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    color: white;
    font-weight: 400;
    font-family: "Poppins", sans-serif;
    resize: vertical;
    min-height: clamp(100px, 15vw, 120px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    line-height: 1.6;
}

#saran::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

#saran:focus {
    border-color: #fbbf24;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.15);
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

#saran:focus::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Scrollbar khusus untuk textarea */
#saran::-webkit-scrollbar {
    width: 8px;
}

#saran::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

#saran::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 4px;
}

#saran::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Enhanced buttons untuk step saran */
#back-to-pertanyaan {
    position: relative;
    overflow: hidden;
}

#back-to-pertanyaan::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

#back-to-pertanyaan:hover::before {
    width: 300px;
    height: 300px;
}

#btn-saran {
    background: linear-gradient(135deg, #10b981, #059669, #047857);
    background-size: 200% 100%;
    animation: gradientPulse 3s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes gradientPulse {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

#btn-saran::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

#btn-saran:hover::after {
    left: 100%;
}

#btn-saran:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
}

/* Responsive untuk step saran */
@media (max-width: 768px) {
    #step-saran .form-group {
        padding: clamp(1rem, 3vw, 1.5rem);
    }

    #saran {
        min-height: clamp(80px, 12vw, 100px);
    }
}

@media (max-width: 480px) {
    #step-saran label {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }

    #saran {
        font-size: clamp(0.8rem, 3vw, 0.9rem);
        padding: clamp(0.75rem, 2.5vw, 1rem);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

