/* ========================================
   BADGE DETAIL + SWITCH PAGE
   ======================================== */

.badge-detail-page {
    max-width: 480px;
    margin: 0 auto;
    padding: 24px 16px;
    word-break: keep-all;
    overflow-wrap: break-word;
    line-break: strict;
}

.badge-detail-page p,
.badge-detail-page h2,
.badge-detail-page h3,
.badge-detail-page div,
.badge-detail-page a,
.badge-detail-page label,
.badge-detail-page span {
    max-width: none !important;
}

.badge-detail-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px 20px;
    border: 1px solid #E3E8EF;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ========================================
   HEADER / BADGE INFO
   ======================================== */

.badge-detail-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-bottom: 20px;
}

.badge-main-image {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
}

.badge-main-image .badge-image,
.badge-main-image .badge-qr-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

.badge-main-image .badge-image {
    border-radius: 8px;
}

.badge-main-image .badge-qr-image {
    margin-top: 4px;
}

.badge-main-image .badge-detail-info {
    margin-top: 12px;
    width: 100%;
}

.badge-detail-info {
    width: 100%;
}

.badge-detail-title {
    font-size: 22px;
    font-weight: 700;
    color: #02050A;
    margin: 0 0 8px 0;
}

.badge-exp-date {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #F0A500;
}

.badge-exp-date .exp-date-value {
    color: #F0A500;
}

/* ========================================
   DOWNLOAD PROMPT CARD
   ======================================== */

.download-prompt-card {
    background-color: #FFF0F3;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.download-prompt-title {
    font-size: 14px;
    font-weight: 700;
    color: #C0143C;
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.download-prompt-desc {
    font-size: 13px;
    color: #02050A;
    margin: 0 0 14px 0;
    line-height: 1.6;
}

.btn-download-detail {
    display: inline-block;
    background-color: #1e3a8a;
    color: #ffffff;
    font-weight: bold;
    font-size: 13px;
    text-align: center;
    padding: 12px 16px;
    border-radius: 999px;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
}

.btn-download-detail:hover {
    background-color: #152e6e;
}

/* ========================================
   SWITCH SECTION
   ======================================== */

.switch-section {
    margin-bottom: 20px;
}

.switch-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #174399;
    margin: 0 0 16px 0;
    text-align: center;
}

/* ========================================
   OTP STEPS INDICATOR
   ======================================== */

.otp-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 24px;
}

.otp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.otp-step.active,
.otp-step.completed {
    opacity: 1;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #E3E8EF;
    color: #02050A;
    font-weight: 700;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.otp-step.active .step-num {
    background-color: #174399;
    color: #FFFFFF;
}

.otp-step.completed .step-num {
    background-color: #F0C808;
    color: #02050A;
}

.step-label {
    font-size: 11px;
    font-weight: 600;
    color: #6B7280;
}

.otp-step-line {
    width: 40px;
    height: 2px;
    background-color: #E3E8EF;
    margin: 0 8px;
    margin-bottom: 18px;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #02050A;
    margin-bottom: 10px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #E3E8EF;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: #02050A;
    background-color: #FFFFFF;
    transition: 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #174399;
    box-shadow: 0 0 0 3px rgba(23, 67, 153, 0.1);
}

.otp-sent-message {
    font-size: 14px;
    color: #02050A;
    margin: 0 0 4px 0;
}

.otp-email-display {
    font-size: 14px;
    font-weight: 600;
    color: #174399;
    margin: 0;
}

/* ========================================
   BUTTONS
   ======================================== */

.submit-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #F0C808 0%, #D9B407 100%);
    border: none;
    border-radius: 999px;
    padding: 16px 24px;
    color: #02050A;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.button-arrow {
    font-size: 20px;
}

.resend-button {
    width: 100%;
    background: none;
    border: 2px solid #E3E8EF;
    border-radius: 999px;
    padding: 12px 24px;
    color: #174399;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: 0.3s ease;
}

.resend-button:hover {
    border-color: #174399;
    background-color: #F7F9FC;
}

/* ========================================
   ERROR MESSAGE
   ======================================== */

.error-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    background-color: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 16px;
    box-sizing: border-box;
}

.error-icon {
    flex-shrink: 0;
}

.error-text {
    flex: 1;
    min-width: 0;
    max-width: 100% !important;
    font-size: 14px;
    color: #DE212E;
    overflow-wrap: break-word;
    word-break: normal;
}

/* ========================================
   BACK BUTTON
   ======================================== */

.home_button {
    margin-top: 20px;
}

.home_button a {
    display: block;
    text-align: center;
    padding: 14px 24px;
    background-color: #F0EDE8;
    color: #4B5563;
    font-weight: 600;
    font-size: 15px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.home_button a:hover {
    background-color: #E3DDD8;
}

/* ========================================
   ANIMATION
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 640px) {
    .badge-detail-page {
        padding: 12px 8px;
    }

    .badge-detail-card {
        padding: 20px 16px;
    }

    .badge-detail-title {
        font-size: 20px;
    }
}
