.check-esim-wrapper {
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-align: center;
}

.check-esim-wrapper * {
    box-sizing: border-box;
}

.check-esim-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
}

.check-esim-form {
    position: relative;
    margin-bottom: 15px;
}

div#check-esim {
    min-height: 400px;
    border-radius: 10px;
    border: 2px solid red;
    background: #fff;
    padding: 40px;
    box-sizing: border-box;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.check-esim-input-group {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px #ff000033;
    padding: 0 20px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    height: 75px;
    width: 100%;
}

.check-esim-input-group:focus-within {
    box-shadow: 0 6px 25px rgba(74, 20, 140, 0.1);
    border-color: rgba(74, 20, 140, 0.3);
}

#check-esim-input, #check-esim-input-modal {
    flex: 1;
    border: none !important;
    outline: none !important;
    font-size: 16px;
    padding: 0 !important;
    margin: 0 !important;
    color: #333;
    background: transparent !important;
    box-shadow: none !important;
    min-height: auto !important;
}

#check-esim-input::placeholder {
    color: #999;
}

#check-esim-btn-search, #check-esim-btn-clear {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
}

#check-esim-btn-search svg {
    transition: transform 0.2s ease;
}

#check-esim-btn-search:hover svg {
    transform: scale(1.1);
}

#check-esim-btn-clear {
    font-size: 24px;
    color: #4A148C;
    margin-left: 10px !important;
}

.check-esim-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    z-index: 10;
    max-height: 250px;
    overflow-y: auto;
    text-align: left;
}

.check-esim-suggestion-item {
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    font-size: 15px;
    color: #333;
    transition: background 0.2s;
}

.check-esim-suggestion-item:last-child {
    border-bottom: none;
}

.check-esim-suggestion-item:hover {
    background: #fafafa;
    color: #4A148C;
}

.check-esim-desc {
    font-size: 14px;
    color: #888;
    margin-top: 20px;
}

/* Modal */
.check-esim-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
}

.check-esim-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    position: relative;
    text-align: center;
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.check-esim-modal-close {
    color: #aaa;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.check-esim-modal-close:hover {
    color: #333;
}

.check-esim-input-group-modal {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 10px 20px;
    border: 1px solid #f0f0f0;
    margin-bottom: 25px;
}

/* Result Area */
#check-esim-result-area {
    margin-top: 20px;
}

.esim-result-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
}

.esim-result-success {
    background-color: #eafbe4;
    color: #2e7d32;
}

.esim-result-error {
    background-color: #ffebeb;
    color: #c62828;
}

.esim-result-box svg {
    margin-right: 10px;
}

.esim-buy-link {
    margin-left: 15px;
    color: #4A148C;
    text-decoration: underline;
    font-weight: 600;
}

.esim-suggestions-box {
    margin-top: 20px;
    text-align: left;
    background: #f9f9f9;
    padding: 15px 20px;
    border-radius: 10px;
}

.esim-suggestions-box h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #555;
}

.esim-suggestions-box ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
    color: #333;
}

.esim-suggestions-box li {
    margin-bottom: 5px;
    font-size: 14px;
}

@media (max-width: 600px) {
    .check-esim-wrapper {
        padding: 0 20px;
    }
    .check-esim-title {
        font-size: 24px;
    }
    .check-esim-modal-content {
        padding: 30px 20px;
    }
}
