@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* ================= PAGE BASE ================= */

body {
    min-height: 100vh;
    background: linear-gradient(to right, #e2e2e2, #c9d6ff);
    color: #333;
}

/* Wrapper for centering content (instead of body flex) */
.page-wrapper {
    width: 100%;
    padding: 40px 20px;
}

.content-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* ================= TOP LOGO BAR ================= */

.top-logo-bar {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
}

.top-logo-inner {
    max-width: 1200px;
    margin: auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.company-logo img {
    height: 80px;
    width:auto;
}

.partner-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.partner-info img {
    height: 80px;
    width:auto;
}

/* ================= CONTAINERS ================= */

.user-box {
    width: 100%;
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
}

.instructions-box {
    background-color: #dce4e1;
    border: 1px solid #ccc;
    padding: 25px;
    border-radius: 8px;
    width: 100%;
    font-size: 16px;
    line-height: 1.6;
}

.instructions-box h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.instructions-box ol {
    padding-left: 20px;
}

.instructions-box li {
    margin-bottom: 12px;
}

/* ================= FORM ================= */

.form-box {
    width: 100%;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.form-box.active {
    display: block;
}

h2 {
    font-size: 30px;
    text-align: center;
    margin-bottom: 15px;
}

input,
select {
    width: 100%;
    padding: 12px;
    background: #eee;
    border: none;
    outline: none;
    font-size: 16px;
    margin-bottom: 20px;
}

form button {
    width: 100%;
    padding: 12px;
    background-color: #279E46;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

form button:hover {
    background-color: #1e7f38;
}

p {
    font-size: 16px;
    text-align: center;
}

p a {
    color: #0335ff;
    text-decoration: none;
}

p a:hover {
    text-decoration: underline;
}

/* ================= MESSAGES ================= */

.error-message {
    padding: 12px;
    background: #f8d7da;
    border-radius: 6px;
    color: #a42834;
    text-align: center;
    margin-bottom: 20px;
}

.welcome-message {
    color: green;
    font-weight: 500;
    margin-bottom: 10px;
    text-align: center;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
    .top-logo-inner {
        flex-direction: column;
        gap: 10px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

.site-footer {
    width: 100%;
    background-color: #f5f5f5;
    text-align: center;
    padding: 15px 10px;
    font-size: 14px;
    color: #555;
    border-top: 1px solid #ddd;
}

.site-footer p {
    margin: 0;
}

/* ================= STATUS PAGES ================= */

.status-box {
    max-width: 600px;
    margin: 50px auto; /* ensures centered horizontally and vertical spacing */
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.08);
    margin-top: 50px;
}


.status-box.success p {
    color: #1e7f38;
    font-size: 18px;
    font-weight: 500;
}

.status-box.error p {
    color: #a42834;
    font-size: 16px;
}

.status-box .button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #279E46;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
}

.status-box .button:hover {
    background-color: #1e7f38;
}

/* ================= SERVICES PAGE ================= */

.services-wrapper {
    max-width: 950px;
    margin: 60px auto;
    background: #ffffff;
    padding: 40px 50px;
    border-radius: 14px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

.services-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 35px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
}

.services-list h3,
.pricing-list h3 {
    font-size: 22px;
    margin-bottom: 18px;
    border-bottom: 3px solid #000;
    display: inline-block;
}

.services-list ul {
    list-style: disc;
    padding-left: 20px;
    font-size: 18px;
}

.services-list li {
    margin-bottom: 16px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    margin-bottom: 20px;
    cursor: pointer;
}

.price-row input {
    transform: scale(1.35);
}

/* ================= TOTAL BOX ================= */

.total-box {
    margin-top: 30px;
    font-size: 22px;
    font-weight: 600;
    text-align: right;
}

/* ================= PAY BUTTON ================= */

.pay-button {
    width: 260px;
    margin: 40px auto 0;
    display: block;
    padding: 16px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 40px;
    background: linear-gradient(90deg, #0a9b42, #7ac943);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pay-button:disabled {
    background: #c4c4c4;
    cursor: not-allowed;
}

.pay-button:hover:not(:disabled) {
    background: linear-gradient(90deg, #087a35, #63b835);
    transform: scale(1.03);
}

/* ================= SERVICE SUMMARY ================= */

.summary-box {
    max-width: 600px;
    margin: 60px auto;
    background: #ffffff;
    padding: 35px 40px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.08);
}

.summary-box h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.summary-box ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.summary-box li {
    font-size: 18px;
    margin-bottom: 12px;
}

.summary-total {
    font-size: 22px;
    font-weight: 600;
    margin-top: 20px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-wrapper {
        padding: 25px;
        margin: 40px 15px;
    }

    .total-box {
        text-align: center;
    }

    .pay-button {
        width: 100%;
    }

    .summary-box {
        margin: 40px 15px;
        padding: 25px;
    }
}

/* ================= SERVICES PAGE REFINEMENT ================= */

.services-list-box {
    margin-top: 30px;
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 140px 30px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
    text-align: left; /* 🔑 important */
}

.service-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-align: left;
}

.service-price {
    font-size: 16px;
    font-weight: 600;
    text-align: right;
    color: #222;
}

.service-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    justify-self: end;
    cursor: pointer;
}

/* Keep total neat and professional */
.total-text {
    font-size: 18px;
    font-weight: 600;
    margin: 25px 0;
    text-align: center;
}

/* Pay button spacing */
#payBtn {
    margin-top: 10px;
}

/* Disabled button visual */
#payBtn:disabled {
    background-color: #a5d6b1;
    cursor: not-allowed;
}

.service-summary-list {
    margin: 25px auto;
    text-align: left;
    padding-left: 25px;
    list-style-type: disc !important;
    list-style-position: outside;
}

.service-summary-list li {
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.6;
    color: #16a34a;
}
