/**
 * Credit Code - Mobile Styles
 * NJ-92156
 * Route: /register/credit_code
 */
.header{
    height:6.4rem;
}

.credit_code_wrap {
    background: #fff;
    min-height: auto;
}

.credit_code_wrap .page_inner {
    max-width: 100%;
}

.credit_code_wrap .container {
    background: #fff;
    padding: 3rem 3rem 4rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    box-shadow: none;
    border:none;
}

/* Page Title Section */
.page_title_section {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
}

.page_title {
    font-family: 'Noto Sans JP', 'Noto Sans CJK JP', sans-serif;
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin: 0;
    line-height: 1.5;
    text-align: left;
}

.page_divider {
    height: 0.1rem;
    background: #e5e5e5;
    margin: 0;
    width: 100%;
}

/* Step Indicator */
.step_indicator {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 1rem;
}

.step_label {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.2rem;
    font-weight: normal;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

.step_title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin: 0;
    line-height: 1.5;
}

/* Promo Input */
.promo-input-wrapper {
    margin: 0 0 2rem;
    display: flex;
    justify-content: center;
}

.promo-input-wrapper input[type='text']{
    border: 0.1rem solid #e0e0e0;
}

.promo-input {
    width: 100%;
    max-width: 31.5rem;
    padding: 1.4rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.6rem;
    font-weight: normal;
    color: #333;
    border: 0.1rem solid #e0e0e0;
    border-radius: 0.8rem;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease;
    height: 5rem;
}

input[type='text'].promo-input::placeholder {
    color: #999;
    font-weight: normal;
}

input[type='text'].promo-input:focus {
    border-color: #f1890e;
}

input[type='text'].promo-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.promo-error-message {
    max-width: 31.5rem;
    margin: -1.2rem auto 2rem;
    color: #e74c3c;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1.5;
}

.promo-error-message.hide {
    display: none;
}

/* Button Section */
.button-section {
    display: flex;
    justify-content: center;
    margin-top: 0;
}

.continue-button {
    width: 100%;
    height: 5rem;
    background: #f1890e;
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 2rem;
    font-weight: normal;
    border: none;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    line-height: normal;
}

.continue-button:hover:not(:disabled) {
    background: #d77808;
    transform: translateY(-0.2rem);
    box-shadow: 0 0.4rem 0.8rem rgba(241, 137, 14, 0.3);
}

.continue-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 0.2rem 0.4rem rgba(241, 137, 14, 0.2);
}

.continue-button:disabled {
    background: #f4f4f4;
    color: #ccc;
    cursor: not-allowed;
}

/* Confirmation Section */
.confirmation-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

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

.plan-confirmation-card {
    border: 0.2rem solid #f1890e;
    border-radius: 1.2rem;
    padding: 2rem 2.4rem;
    background: #fff;
    margin: 0 0 2rem;
    opacity: 0;
    animation: fadeInScale 0.5s ease-out 0.2s forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.plan-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.plan-name {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    line-height: 1.5;
}

.plan-price {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 3.2rem;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
}

.price-period {
    font-size: 1.6rem;
    font-weight: normal;
    color: #666;
}

.submit-button {
    width: 100%;
    height: 5rem;
    background: #f1890e;
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 2rem;
    font-weight: normal;
    border: none;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    line-height: normal;
}

.submit-button:hover:not(:disabled) {
    background: #d77808;
    transform: translateY(-0.2rem);
    box-shadow: 0 0.4rem 0.8rem rgba(241, 137, 14, 0.3);
}

.submit-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 0.2rem 0.4rem rgba(241, 137, 14, 0.2);
}

.submit-button:disabled {
    background: #f4f4f4;
    color: #ccc;
    cursor: not-allowed;
}

.submit-button.is-submitting {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    cursor: not-allowed;
    transition: none;
    background: #f1890e;
}

.submit-button.is-submitting::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.8rem;
    height: 1.8rem;
    margin: -0.9rem 0 0 -0.9rem;
    border: 0.25rem solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: credit-code-btn-spin 0.7s linear infinite;
}

@keyframes credit-code-btn-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {

    .page_title {
        font-size: 1.3rem;
    }

    .step_label {
        font-size: 1.1rem;
    }

    .step_title {
        font-size: 1.8rem;
    }

    .promo-input {
        font-size: 1.5rem;
        padding: 1.2rem;
    }


    .plan-name {
        font-size: 1.6rem;
    }

    .plan-price {
        font-size: 2.8rem;
    }

    .price-period {
        font-size: 1.4rem;
    }
}
