.buy-now-container {
    max-width: 700px;
    margin: 50px auto;
    padding: 40px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.buy-now-container h1 {
    font-size: 35px;
    text-align: center;
    padding-bottom: 15px;
}

.product-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.product-image-container {
    flex-shrink: 0;
}

.product-image {
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-details {
    flex: 1;
}

.product-summary h4 {
    color: #333;
    font-size: 28px;
    margin-bottom: 5px;
    text-align: left;
}

.product-summary .price {
    margin-bottom: 5px;
    font-size: 35px;
    font-weight: bold;
    color: #8e410c;
    text-align: left;
}

.product-summary p {
    text-align: left;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .product-summary {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .product-summary h4,
    .product-summary .price,
    .product-summary p {
        text-align: center;
    }
}

.payment-form-container {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.required-field {
    color: #dc3545;
}

.payment-info {
    margin-top: 30px;
    padding: 20px;
    background: #e9ecef;
    border-radius: 10px;
}

.payment-info p {
    line-height: 1.5;
    margin-bottom: 10px;
}

.payment-info p:last-child {
    margin-bottom: 0;
}

/* Classes for previously inline-styled elements */

.section-title {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.section-title.address {
    margin: 30px 0 20px 0;
}

.worldpay-logo-box {
    padding: 20px;
    text-align: center;
    margin-bottom: 25px;
    background: #f8f9fa;
    border-radius: 8px;
}

.worldpay-logo-box p {
    margin-bottom: 8px;
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.worldpay-logo-box .worldpay-logo-desc {
    font-size: 12px;
    color: #999;
}

.buy-now-btn {
    width: 100%;
    margin-bottom: 15px;
}

.back-to-product-link {
    color: #666;
    text-decoration: underline;
    font-size: 14px;
}
