:root {
    --bg-color: #f6f9fc;
    --section-bg: #ffffff;
    --input-bg: #ffffff;
    --text-color: #1a1a1a;
    --subtext-color: #6b7c93;
    --border-color: #e6ebf1;
    --accent-color: #000000;
    --button-bg: #000000;
    --button-text: #ffffff;
    --active-button-bg: #000000;
    --active-button-text: #ffffff;
}

body.light-theme {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.main-container {
    display: flex;
    width: 100%;
    max-width: 900px;
    gap: 0;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 50px 100px -20px rgba(50,50,93,.25), 0 30px 60px -30px rgba(0,0,0,.3);
    overflow: hidden;
}

.payment-details-section {
    flex: 1.2;
    padding: 60px;
}

.order-summary-section {
    flex: 1;
    background-color: #f8f9fa;
    padding: 60px;
    border-left: 1px solid var(--border-color);
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
}

h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Payment Method */
.payment-method-section {
    margin-bottom: 30px;
}

.method-btn {
    flex: 1;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.method-btn.active {
    border-color: #000;
    background-color: #fff;
    box-shadow: 0 0 0 1px #000;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #4f566b;
    margin-bottom: 8px;
}

input[type="text"], select {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 12px 15px;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="text"]:focus, select:focus {
    border-color: #000;
    box-shadow: 0 0 0 1px #000;
}

/* Select Wrapper */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    font-size: 10px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #a3acb9;
}

select {
    appearance: none;
}

/* Card Details Specific */
.card-input-wrapper {
    position: relative;
}

.card-input-wrapper input {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.card-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a3acb9;
}

.card-extra-info {
    display: flex;
}

.card-extra-info input:first-child {
    border-top: none;
    border-right: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.card-extra-info input:last-child {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
}

/* Summary Text & Terms */
.summary-text {
    font-weight: 600;
    margin-top: 30px;
    font-size: 15px;
    color: #1a1f36;
}

.terms-text {
    font-size: 12px;
    color: #697386;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Subscribe Button */
.btn-subscribe {
    width: 100%;
    background-color: #e6ebf1;
    color: #a3acb9;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: not-allowed;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.btn-subscribe:hover:not([style*="not-allowed"]) {
    background-color: #333333;
    color: #ffffff;
}

/* Order Summary (Right) */
.summary-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

.merchant-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.merchant-logo {
    width: 44px;
    height: 44px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.merchant-details strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1a1f36;
}

.merchant-details p {
    font-size: 13px;
    color: #697386;
    margin: 2px 0 0 0;
}

.discount-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
    font-size: 14px;
    color: #697386;
    cursor: pointer;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 14px;
    color: #4f566b;
}

.summary-divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 24px 0;
}

.total-line {
    font-size: 16px;
    font-weight: 700;
    color: #1a1f36;
}

@media (max-width: 768px) {
    body.light-theme {
        padding: 0;
        align-items: flex-start;
    }
    
    .main-container {
        flex-direction: column;
        border-radius: 0;
        box-shadow: none;
    }
    
    .payment-details-section {
        padding: 40px 20px;
        order: 2;
    }
    
    .order-summary-section {
        padding: 40px 20px;
        border-left: none;
        border-bottom: 1px solid var(--border-color);
        order: 1;
    }
}
