@media screen and (min-width: 320px) and (max-width: 767px) {
    #card_order .pre_order_form_grup2 {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #card_order .pre_order_filed2 {
        width: 100%;
    }

    #card_order .contents {
        display: block !important;
    }

    #card_order .pre_order_filed2 .form-control {
        width: 100% !important;
    }
}

* {
    box-sizing: border-box;
}

body .pre_order_content input[type="text"], body .pre_order_content textarea{
    border: 1px solid #ccc;
    border-radius: 4px;
}

 .esim-verify-overlay {
     width: 90vw;
     max-width: 720px;
     min-width: 320px;
     margin: 0 auto;
 }

.esim-verify-modal {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 20px 40px rgba(0,0,0,.25);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.esim-verify-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.esim-verify-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #b31217;
}

.esim-close-btn {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #999;
}

.esim-verify-description {
    text-align: center;
    font-size: 15px;
    color: #555;
    margin-bottom: 28px;
}

.esim-code-inputs {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 28px;
}

.esim-code-inputs input {
    width: 64px;
    height: 64px;
    font-size: 26px;
    text-align: center;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all .2s;
}

.esim-code-inputs input:focus {
    border-color: #b31217;
    outline: none;
}

#esim-verify-btn {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    background: #b31217;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background .2s;
}

#esim-verify-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#esim-verify-btn:not(:disabled):hover {
    background: #8f0f13;
}

.esim-timer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.esim-timer strong {
    color: #b31217;
    margin-left: 6px;
}

#esim-resend-btn {
    margin-top: 12px;
    background: none;
    border: none;
    color: #b31217;
    font-weight: 600;
    cursor: pointer;
}

#esim-resend-btn:disabled {
    color: #aaa;
    cursor: not-allowed;
}

.esim-message {
    margin-top: 16px;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
}

.esim-message.error {
    background: #ffe5e5;
    color: #b31217;
}

.esim-message.success {
    background: #e6fff1;
    color: #0a7a3c;
}

.hidden {
    display: none;
}

@media (max-width: 480px) {
    .esim-code-inputs input {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
}