/* ==========================
   GLOBAL STYLES
========================== */

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f0f2f5;
    margin: 0;
    padding: 0;
    color: #333;
}

h2, h3 {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
}

.wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

.left-side, .right-side {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.left-side h3, .right-side h3 {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
}

input, select, textarea {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 14px;
    font-size: 15px;
    transition: all 0.3s;
}

input:focus, textarea:focus, select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
}

.theme-btn {
    background: linear-gradient(90deg, #007bff, #0056b3);
    font-weight: 600;
    border-radius: 12px;
    padding: 14px 22px;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.right-side {
    position: sticky;
    top: 20px;
}

.summary-box .flex {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.summary-box .total {
    font-size: 20px;
    font-weight: 700;
    color: #111;
}

.save-badge {
    background: #19c64a;
    color: #fff;
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
}

/* ==========================
   GRID LAYOUTS
========================== */

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.grid {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 25px;
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media(max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================
   CARDS / BOXES
========================== */

.box,
.card,
.summary-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    border: 1px solid #eee;
    box-sizing: border-box;
    width: 100%;
}

.card h3,
.box h3,
.summary-box h3 {
    margin-top: 0;
}

.card p,
.box p,
.summary-box p {
    margin: 5px 0;
}

/* ==========================
   FORM ELEMENTS
========================== */

input, select, textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-top: 6px;
    box-sizing: border-box;
}

label {
    display: block;
    font-weight: 600;
    margin-top: 12px;
}

/* ==========================
   BUTTONS
========================== */

.btn,
.place-btn,
.checkout-btn,
.theme-btn {
    display: inline-block;
    padding: 12px 22px;
    background: #007bff;
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn.full {
    width: 100%;
}

.btn:hover,
.place-btn:hover,
.checkout-btn:hover,
.theme-btn:hover {
    background: #0056b3;
}

/* ==========================
   FLEX UTILITY
========================== */

.flex {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
}

.total {
    font-weight: bold;
    font-size: 1.1em;
}

/* ==========================
   PRICE / SUMMARY
========================== */

.price {
    font-size: 28px;
    font-weight: bold;
    color: #000;
    margin-left: 10px;
}

.old {
    text-decoration: line-through;
    color: #888;
    font-size: 14px;
    margin-left: 10px;
}

.save-badge,
.save {
    background: #19c64a;
    color: #fff;
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    margin-left: 10px;
}

.discount {
    color: #c02626;
}

.subtotal {
    font-weight: 700;
    font-size: 18px;
    margin-top: 10px;
}

/* ==========================
   ALERTS / NOTICES
========================== */

.alert {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

.notice {
    background: #eaf9ee;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #bce3c5;
    margin-top: 15px;
    color: #1b5e20;
    font-size: 14px;
}

/* ==========================
   SUCCESS MESSAGE
========================== */

.order-success {
    max-width: 650px;
    margin: 60px auto;
    text-align: center;
    padding: 30px;
    border-radius: 14px;
    background: #f6fffa;
    border: 1px solid #d9f1e4;
}

.order-success h2 {
    color: #22aa57;
    margin-bottom: 15px;
}

.order-success p {
    color: #333;
    font-size: 16px;
}

/* ==========================
   MISC / CART SPECIFIC
========================== */

.cart-flex {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cart-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    width: calc(50% - 20px);
}

.cart-card h3 {
    margin: 0 0 10px 0;
}

.remove-btn {
    color: #e00;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

.checkout-form {
    max-width: 600px;
    margin: auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

/* ==========================
   SELECT / DROPDOWN
========================== */

.plan-select {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 15px;
    width: 180px;
}

/* ==========================
   RESPONSIVE
========================== */

@media(max-width: 768px) {
    .row, .cart-flex {
        flex-direction: column;
    }
    .cart-card {
        width: 100%;
    }
    .left-side, .right-side {
        flex: 1 1 100%;
    }
}
label.error {
  color: #dc3545;   /* Bootstrap danger red */
  font-size: 13px;
  margin-top: 3px;
}/* Container styling */
.payment-methods-container {
    margin-bottom: 25px;
}

.payment-methods-container h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

/* Row styling */
.method-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px; /* Slightly rounded corners like img 2 */
    margin-bottom: -1px; /* Overlap borders to prevent double lines */
    cursor: pointer;
    transition: background 0.2s ease;
     background: #c2adad !important;
}

/* Hover & Active States */
.method-row:hover {
    background-color: #f9f9f9;
}

/* First and last child rounding logic */
.method-row:first-of-type {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.method-row:last-of-type {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Left side: Radio + Text */
.method-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.method-info input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Right side: Icons */
.method-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.method-icons img {
    height: 20px; /* Uniform height for logos */
    object-fit: contain;
    filter: grayscale(20%); /* Optional: softens the logos to match UI */
}

/* Responsive fix for small screens */
@media (max-width: 480px) {
    .method-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .method-icons {
        margin-left: 30px;
    }
}