/* ===== SKM Survey Custom Styles ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 50%, #f0f4f8 100%);
    min-height: 100vh;
    margin: 0;
    color: #1e293b;
}

/* ===== Hero Header ===== */
.survey-hero {
    background: linear-gradient(135deg, #0e7490 0%, #0891b2 40%, #06b6d4 100%);
    padding: 2.5rem 0 4rem;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.survey-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.survey-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-back-btn {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    backdrop-filter: blur(4px);
}

.hero-back-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    transform: translateX(-3px);
}

.hero-brand-logo {
    width: 72px;
    height: auto;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

.survey-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.survey-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.975rem;
    font-weight: 400;
    max-width: 620px;
    margin: 0 auto;
}

/* ===== Main Survey Content ===== */
.survey-main-content {
    margin-top: -2.25rem;
    position: relative;
    z-index: 3;
    padding-bottom: 4rem;
}

/* ===== Survey Card ===== */
.survey-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.survey-card-header {
    background: linear-gradient(135deg, #0e7490 0%, #0891b2 100%);
    padding: 1.25rem 1.75rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.survey-card-header .header-title {
    font-weight: 700;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin: 0;
}

.survey-card-body {
    padding: 2rem;
}

/* ===== Progress Bar Component ===== */
.step-counter {
    margin-bottom: 1.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.875rem 1.25rem;
    border-radius: 16px;
}

.step-counter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.step-number-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: #ecfeff;
    color: #0891b2;
    border: 1px solid #a5f3fc;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.35rem 0.875rem;
    border-radius: 20px;
}

.step-rate {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0e7490;
}

.step-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.step-bar .move {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #06b6d4, #0891b2);
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* ===== Form Styling ===== */
.survey-section-heading {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.survey-section-subheading {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.alert-perizinan-notice {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    color: #873800;
    font-weight: 600;
    font-size: 0.925rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #334155;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    border: 1.5px solid #cbd5e1;
    font-size: 0.95rem;
    color: #1e293b;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: #ffffff;
    border-color: #0891b2;
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.15);
    outline: none;
}

/* Custom Sex Radio Cards */
.sex-radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.sex-radio-card {
    flex: 1;
    min-width: 140px;
    position: relative;
}

.sex-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sex-radio-card label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.925rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.sex-radio-card input[type="radio"]:checked + label {
    background: #ecfeff;
    border-color: #0891b2;
    color: #0891b2;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.15);
}

.sex-radio-card label:hover {
    border-color: #0891b2;
    background: #f0f9ff;
}

/* ===== Question Choice Radio Cards ===== */
.radio-field-2 {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.radio-field-2:hover {
    transform: translateY(-4px);
    border-color: #0891b2;
    box-shadow: 0 10px 25px rgba(8, 145, 178, 0.15);
    background: #fafafa;
}

.radio-field-2 input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    margin-bottom: 0.75rem;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.radio-field-2 input[type="radio"]:checked {
    border-color: #0891b2 !important;
    background-color: #0891b2 !important;
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.2);
}

.radio-field-2 input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
}

.radio-field-2:has(input[type="radio"]:checked) {
    border-color: #0891b2;
    background: #ecfeff;
    box-shadow: 0 8px 20px rgba(8, 145, 178, 0.18);
}

.radio-img {
    width: 88px;
    height: 88px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radio-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.radio-field-2:hover .radio-img img {
    transform: scale(1.1);
}

.responsive-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.35;
    text-transform: none !important;
}

/* ===== Buttons & Navigation ===== */
.next-prev {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.btn-submit {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.875rem 2.5rem;
    border-radius: 14px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    box-shadow: 0 8px 20px rgba(8, 145, 178, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-submit:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(8, 145, 178, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.next {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.875rem 2.5rem;
    border-radius: 14px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    box-shadow: 0 8px 20px rgba(8, 145, 178, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.next:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(8, 145, 178, 0.4);
}

/* ===== Responsive adjustments ===== */
@media (max-width: 767.98px) {
    .survey-hero {
        padding: 2rem 0 3.5rem;
    }

    .survey-hero h1 {
        font-size: 1.5rem;
    }

    .survey-hero p {
        font-size: 0.875rem;
    }

    .survey-card-body {
        padding: 1.25rem;
    }

    .survey-section-heading {
        font-size: 1.15rem;
    }

    .radio-field-2 {
        padding: 1rem 0.75rem;
        margin-bottom: 1rem;
    }

    .radio-img {
        width: 72px;
        height: 72px;
    }

    .responsive-label {
        font-size: 0.875rem;
    }
}

/* ===== Thank You Page Styling ===== */
.thankyou-box {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.thankyou-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #ecfeff 0%, #cffaff 100%);
    border: 2px solid #a5f3fc;
    color: #0891b2;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px rgba(8, 145, 178, 0.2);
}

.thankyou-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.thankyou-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.thankyou-subtitle {
    font-size: 1.15rem;
    color: #475569;
    font-weight: 500;
    max-width: 500px;
    margin: 0 auto 2.5rem;
}

.thankyou-contact-grid {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.contact-card-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-align: left;
    height: 100%;
    transition: all 0.2s ease;
}

.contact-card-item:hover {
    background: #f0f9ff;
    border-color: #a5f3fc;
    transform: translateY(-2px);
}

.contact-icon-box {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: linear-gradient(135deg, #0e7490, #0891b2);
    color: #ffffff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 6px 16px rgba(8, 145, 178, 0.25);
}

.contact-info-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem 0;
}

.contact-info-content p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.35;
}

/* ===== Feedback Alasan Container (for score 1 & 2) ===== */
.feedback-container {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 14px;
    padding: 1.25rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08);
    animation: fadeInSlideDown 0.3s ease-out;
}

@keyframes fadeInSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-title {
    font-size: 0.925rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feedback-textarea {
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.925rem;
    resize: vertical;
    transition: all 0.2s ease;
    background: #ffffff;
    width: 100%;
}

.feedback-textarea:focus {
    border-color: #0891b2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

.btn-next-feedback {
    background: linear-gradient(135deg, #0e7490, #0891b2);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 0.55rem 1.4rem;
    font-weight: 600;
    font-size: 0.925rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.25);
    transition: all 0.2s ease;
}

.btn-next-feedback:hover {
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(8, 145, 178, 0.35);
}

.feedback-textarea.is-invalid {
    border-color: #ef4444 !important;
    background-color: #fffaf0;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.feedback-error-msg {
    font-size: 0.85rem;
    font-weight: 600;
    color: #dc2626;
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    animation: fadeInSlideDown 0.2s ease-out;
}

.shake-animation {
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}


