.stripe-subscription-form {
    display: flex;
    max-width: 800px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.left-panel, .right-panel {
    flex: 1;
    padding: 120px 20px;
}

.left-panel {
    border-right: 1px solid #e0e0e0;
}

.left-panel h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.left-panel p {
    margin: 5px 0;
}

.promo-code {
    display: flex;
    margin: 10px 0;
}

.promo-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.promo-button {
    padding: 8px 10px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-left: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
}

.right-panel h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.contact-info input, .text-input, .payment-method input, .billing-address input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.payment-method div {
    margin-bottom: 10px;
}

.contact-info input.error, .text-input.error, .payment-method input.error {
    border-color: #fa755a;
}

.error-message {
    color: #fa755a;
    font-size: 14px;
    margin-top: 5px;
}

#card-element {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 16px;
}

.billing-address input {
    margin-bottom: 5px;
}

.pay-button {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.pay-button:hover {
    background-color: #218838;
}

.right-panel p {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

.subscription-notice {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

.status-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.status-message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.status-message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

.applied-promo-tag {
    background-color: #e0f7e9;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 6px 10px;
    margin-top: 8px;
    border-radius: 4px;
    font-size: 14px;
    display: inline-block;
}

/* Hide postal code field */
#card-element .StripeElement--postalCode,
#card-element .__PrivateStripeElement--postalCode {
    display: none !important;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .stripe-subscription-form {
        flex-direction: column;
        max-width: 100%;
    }

    .left-panel, .right-panel {
        flex: none;
        width: 100%;
        padding: 10px;
    }

    .left-panel {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .promo-code {
        flex-direction: column;
    }

    .promo-input {
        border-radius: 4px;
        margin-bottom: 5px;
    }

    .promo-button {
        border-radius: 4px;
        border-left: 1px solid #ccc;
    }

    .contact-info input, .text-input, .billing-address input {
        font-size: 14px;
    }
}