@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

.kr-return-wrapper {
    max-width: 520px;
    margin: 40px auto;
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: #111827;
}

.kr-return-form-container,
.kr-return-result {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.kr-return-form-container h2,
.kr-return-result h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 600;
    color: #111827;
}

.kr-return-form-container > p {
    margin: 0 0 24px;
    color: #5f6b7a;
    font-size: 15px;
    font-weight: 400;
}

.kr-field {
    margin-bottom: 18px;
}

.kr-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #2d2d2d;
}

.kr-field select,
.kr-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 14px;
    font-size: 15px;
    font-family: inherit;
    color: #111827;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
    height: 48px;
}

.kr-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.kr-field select:focus,
.kr-field input:focus {
    outline: none;
    border-color: #AAC752;
    box-shadow: 0 0 0 3px rgba(170, 199, 82, 0.2);
}

.kr-field input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

#kr-submit-btn {
    width: 100%;
    padding: 14px 16px;
    margin-top: 8px;
    background: #5E834A;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    box-shadow: 0 10px 22px rgba(94, 131, 74, 0.25);
    height: 48px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#kr-submit-btn:hover {
    background: #4a6e3a;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(94, 131, 74, 0.3);
}

#kr-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(94, 131, 74, 0.15);
}

#kr-submit-btn:disabled {
    background: #8E91A9;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

.kr-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
}

.kr-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Delivery method section */
.kr-delivery-group .kr-radio-label {
    align-items: flex-start;
}

.kr-delivery-group .kr-radio-label small {
    display: block;
    margin-top: 2px;
    font-weight: 400;
    font-size: 12px;
    color: #5f6b7a;
}

.kr-delivery-group .kr-radio-label input[type="radio"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.kr-locked-notice {
    padding: 16px 20px;
    margin: 0 0 20px;
    background: #fff3cd;
    border: 1px solid #f0c75e;
    border-left: 4px solid #d97706;
    border-radius: 12px;
    color: #6d4c00;
    text-align: left;
}

.kr-locked-notice strong {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #92400e;
}

.kr-locked-notice p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.kr-qr-notice {
    padding: 16px 20px;
    margin-bottom: 20px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 12px;
    color: #6d4c00;
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
}

/* Card change section */
.kr-card-change-section {
    margin-top: 8px;
    margin-bottom: 18px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.kr-field-help {
    margin: 0 0 12px;
    color: #5f6b7a;
    font-size: 13px;
    line-height: 1.5;
}

.kr-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kr-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.kr-radio-label:hover {
    border-color: #AAC752;
}

.kr-radio-label input[type="radio"] {
    width: auto;
    height: auto;
    margin: 0;
    accent-color: #5E834A;
}

.kr-radio-label input[type="radio"]:checked + span {
    color: #5E834A;
    font-weight: 600;
}

#kr-bank-fields {
    margin-top: 16px;
}

.kr-bank-notice {
    padding: 12px 16px;
    margin-bottom: 16px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 10px;
    font-size: 13px;
    color: #6d4c00;
    line-height: 1.5;
}

#kr-bank-fields .kr-field input {
    border-radius: 10px;
}

/* Result step */
.kr-return-result {
    text-align: center;
}

.kr-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: rgba(170, 199, 82, 0.15);
    color: #5E834A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
}

#kr-result-message {
    color: #5f6b7a;
    margin-bottom: 24px;
    font-size: 15px;
}

.kr-label-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
}

.kr-btn,
.kr-btn:link,
.kr-btn:visited {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none !important;
    cursor: pointer;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    color: #fff !important;
}

.kr-btn-primary {
    background: #5E834A !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(94, 131, 74, 0.25);
}

.kr-btn-primary:hover,
.kr-btn-primary:focus {
    background: #4a6e3a !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(94, 131, 74, 0.3);
}

.kr-btn-secondary {
    background: #AAC752 !important;
    color: #fff !important;
    border: none;
    box-shadow: 0 10px 22px rgba(170, 199, 82, 0.25);
}

.kr-btn-secondary:hover,
.kr-btn-secondary:focus {
    background: #99b647 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(170, 199, 82, 0.3);
}

.kr-btn-link {
    background: #8E91A9 !important;
    color: #fff !important;
    padding: 14px 24px;
    font-size: 14px;
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(142, 145, 169, 0.2);
}

.kr-btn-link:hover,
.kr-btn-link:focus {
    background: #7a7d94 !important;
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(142, 145, 169, 0.25);
}

.kr-instructions {
    text-align: left;
    background: #f6f6f6;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.kr-instructions h3 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.kr-instructions ol {
    margin: 0;
    padding-left: 20px;
    color: #5f6b7a;
    font-size: 14px;
    line-height: 1.8;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .kr-return-wrapper {
        margin: 20px 16px;
    }

    .kr-return-form-container,
    .kr-return-result {
        padding: 24px 20px;
    }

    .kr-field input,
    #kr-submit-btn {
        height: 52px;
    }

    .kr-label-actions {
        flex-direction: column;
    }

    .kr-btn {
        width: 100%;
        text-align: center;
    }
}
