/* ==========================================
   VARIABLES
========================================== */

:root{

    --primary:#6E8A3A;
    --primary-dark:#4F6630;

    --gold:#B8903C;
    --gold-light:#D9B45A;

    --background:#F7F5F1;
    --card:#FFFFFF;

    --text:#2C2C2C;
    --text-light:#777777;

    --border:#E8E3DA;

    --shadow:0 20px 50px rgba(0,0,0,.08);

}

/* ==========================================
   RESET
========================================== */

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{
    width:100%;
    font-family:'Inter',sans-serif;
    background:var(--background);
    color:var(--text);

}

/* ==========================================
   PAGE
========================================== */

.payment-page{

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:60px 20px;
}

/* ==========================================
   CARD
========================================== */

.payment-card{

    width:100%;
    max-width:620px;
   
    background:var(--card);

    border-bottom-left-radius:28px;
    border-bottom-right-radius:28px;

    padding:50px;

    box-shadow:var(--shadow);

    border:1px solid var(--border);

}

/* ==========================================
   LOGO
========================================== */

.logo{

    text-align:center;

    margin-bottom:30px;

}

.logo img{

    width:170px;

}

/* ==========================================
   HEADER
========================================== */

.header{

    text-align:center;

    margin-bottom:40px;

}

.header h1{

    font-size:2rem;

    font-weight:700;

    margin-bottom:12px;

}

.header p{

    color:var(--text-light);

    line-height:1.7;

    font-size:15px;

}

/* ==========================================
   SELECT
========================================== */

.service-section{

    margin-bottom:35px;

}

.service-section label{

    display:block;

    margin-bottom:12px;

    font-weight:600;

}

.service-section select{

    width:100%;

    padding:16px;

    border-radius:14px;

    border:1px solid var(--border);

    font-size:15px;

    background:white;

    outline:none;

    transition:.3s;

}

.service-section select:focus{

    border-color:var(--primary);

}

/* ==========================================
   SUMMARY
========================================== */

.summary{

    border:1px solid var(--border);

    border-radius:18px;

    padding:25px;

    margin-bottom:35px;

}

.summary h2{

    font-size:18px;

    margin-bottom:25px;

}

.summary-item{
    font-size: 14px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:18px;

}

.summary-item span{

    color:var(--text-light);

}

.summary-item strong{

    text-align:right;

}

.summary .total{

    margin-top:25px;

    padding-top:20px;

    border-top:1px solid var(--border);

    font-size:20px;

}

.summary .total strong{

    color:var(--gold);

}

/* ==========================================
   PAYMENT METHODS
========================================== */

.payment-methods{

    margin-bottom:40px;

}

.payment-methods h2{

    font-size:18px;

    margin-bottom:18px;

}

.payment-grid{

    display:flex;

    flex-wrap:wrap;

    gap:12px;

}

.payment-grid span{

    border:1px solid var(--border);

    padding:10px 16px;

    border-radius:50px;

    font-size:14px;

    background:#fafafa;

}

/* ==========================================
   BUTTON
========================================== */

.checkout{

    margin-bottom:40px;

}

#checkout-button{

    width:100%;

    padding:18px;

    border:none;

    border-radius:16px;

    background:var(--gold);

    color:white;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:.35s;

}

#checkout-button:hover{

    background:var(--primary);

    transform:translateY(-2px);

}

/* ==========================================
   STRIPE
========================================== */

.stripe-container{

    margin-top:30px;

}

/* ==========================================
   FOOTER
========================================== */

footer{

    text-align:center;

    border-top:1px solid var(--border);

    padding-top:30px;

}

footer p{

    color:var(--text-light);

    margin-bottom:10px;

}

footer a{

    text-decoration:none;

    color:var(--primary);

}

footer nav{

    margin:25px 0;

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:18px;

}

footer small{

    color:#999;

}

/* ==========================================
   RESPONSIVE
========================================== */

@media(max-width:700px){

    .payment-card{

        padding:35px 25px;

    }

    .header h1{

        font-size:30px;

    }

    .summary-item{

        flex-direction:column;

        align-items:flex-start;

        gap:6px;

    }

    footer nav{

        flex-direction:column;

        gap:10px;

    }

}

.payment-card{

    position:relative;

}

.payment-card::before{

    content:"";

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:5px;

    background:linear-gradient(
        90deg,
        var(--gold),
        var(--gold-light)
    );

   

    border-radius:28px 28px 0 0;

}
/* ==========================
   CUSTOM PAYMENT
========================== */

.hidden{

    display:none;

}

/* ==========================
   CUSTOM PAYMENT
========================== */

.custom-payment{

    display:none;

    margin-top:20px;

    flex-direction:column;

    gap:12px;

    padding:20px;

    border:1px solid #E8E8E8;

    border-radius:14px;

    background:#FAFAFA;

}

.custom-payment.show{

    display:flex;

}

.custom-payment label{

    font-size:.9rem;

    font-weight:600;

    color:#333;

}

.custom-payment input{

    width:100%;

    padding:14px 16px;

    border:1px solid #DDD;

    border-radius:10px;

    font-size:15px;

    font-family:inherit;

    transition:.25s;

}

.custom-payment input:focus{

    outline:none;

    border-color:#C6A15B;

    box-shadow:0 0 0 4px rgba(198,161,91,.15);

}
