/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');

/* Basic Reset & Body Style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hind Siliguri', sans-serif;
    background-color: #e9e9e9;
    color: #333;
}

.modal-overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 40px 15px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.checkout-modal {
    background: #fff;
    width: 100%;
    max-width: 420px;
    border-radius: 8px;
    padding: 20px 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.modal-header h2 {
    font-weight: 600;
    font-size: 1.1em;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #888;
}

.header-subtitle {
    text-align: center;
    font-weight: 600;
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* Form Groups */
.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.input-group .required {
    color: red;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.input-with-icon input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Hind Siliguri', sans-serif;
}

/* Shipping Method */
.shipping-method {
    margin-top: 20px;
}

.shipping-method h3 {
    font-weight: 600;
    font-size: 1em;
    margin-bottom: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    background: #f8f8f8;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-bottom: 8px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    display: none;
}

.custom-radio {
    width: 18px;
    height: 18px;
    border: 2px solid #aaa;
    border-radius: 50%;
    margin-right: 12px;
    display: inline-block;
    position: relative;
}

.radio-option input[type="radio"]:checked + .custom-radio {
    border-color: #f89503;
}

.radio-option input[type="radio"]:checked + .custom-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #f89503;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio-option .price {
    margin-left: auto;
    font-weight: 600;
}

/* Coupon */
.coupon-group {
    display: flex;
    margin-top: 20px;
}

.coupon-group input {
    flex-grow: 1;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 5px 0 0 5px;
    font-family: 'Hind Siliguri', sans-serif;
}

.coupon-group .apply-btn {
    border: none;
    background: #f89503;
    color: #000;
    padding: 0 25px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    font-size: 1em;
    font-family: 'Hind Siliguri', sans-serif;
}

/* Order & Totals */
.order-summary, .totals-summary {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.item-img {
    position: relative;
}

.item-img img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.item-quantity {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f89503;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8em;
    font-weight: 600;
}

.item-name {
    flex-grow: 1;
}

.total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1em;
}

.grand-total {
    font-weight: 700;
    font-size: 1.1em;
    color: #000;
}

/* Submit Button & Text */
.submit-btn {
    width: 100%;
    background: #f89503;
    color: #000;
    border: none;
    padding: 15px;
    font-size: 1.2em;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    font-family: 'Hind Siliguri', sans-serif;
    box-shadow: 0 2px 7px 0px rgba(0, 0, 0, 0.1);
}

.confirmation-text {
    text-align: center;
    margin-top: 15px;
    color: #1d9e06;
    font-weight: 600;
}