/* =====================================================================
   SERVICE DETAILS PAGE  (templates/website/service_details.html  ->  /service/<name>/)
   One service's page: photos, description, quantity + donation form.
   ===================================================================== */

.gallery-item .img-style {
    width: 100%;
    height: 260px;      /* Ungalukku venum size */
    overflow: hidden;
    border-radius: 12px;
}

.gallery-item .img-style img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Ella images-um same size */
    display: block;
}
@media (max-width: 768px) {
    .gallery-item .img-style {
        height: 180px;
    }
}



@media (max-width:768px){

    .u-hero__text-col{
        display:flex;
        flex-direction:column;
    }

    .u-title-row{
        display:flex;
        justify-content:space-between;
        align-items:flex-start;
        gap:12px;
    }

    .u-hero__actions{
        order:-1;
        align-self:flex-end;
        margin:0 0 12px;
    }

    .u-hero__act-primary{
        padding:10px 16px;
        font-size:14px;
        white-space:nowrap;
        border-radius:16px;
    }

    /* 👇 Mobile-la mattum hide */
    .u-meal-strip{
        display:none !important;
    }
}

.quote{
    font-size: inherit;
    font-weight: 700;
}

.u-about__pull{
    font-size:18px;   /* Desktop */
    line-height:2;
    font-style: normal; 
}

@media (max-width: 768px) {

    .u-about__pull{
        font-size: 18px;      /* Desktop 20-32px -> Mobile 18px */
        line-height: 1.6;
        padding: 14px 16px;
        margin: 0px 0;
        border-left-width: 4px;
        border-radius: 0 6px 6px 0;
        font-family: Lora, serif;
        
    }

    .u-about__pull cite{
        font-size: 11px;
        margin-top: 0px;
        letter-spacing: 0.8px;
    }

}

@media (max-width: 768px) {
    .u-sec {
        padding: 0 !important;
    }
}

.u-summary__sep{
    border-top: 2px solid #e5e7eb;
    margin: 18px 0;
}

.u-summary{
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    box-shadow:
        0 6px 12px rgba(0, 0, 0, 0.08),
        0 16px 32px rgba(0, 0, 0, 0.12);
}

.u-form-card{
    background: #fff;
    border: 1px solid #dfe3e8;
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 4px 12px rgba(0,0,0,.08),
        0 12px 32px rgba(0,0,0,.12);
    transition: all .3s ease;
}

.u-form-card:hover{
    box-shadow:
        0 8px 20px rgba(0,0,0,.10),
        0 20px 40px rgba(0,0,0,.16);
}




/* Normal form text */
.u-form-card,
.u-form-card input,
.u-form-card select,
.u-form-card textarea,
.u-form-card label {
    
}

/* Headings */
.u-form-card__head-title,
.u-form-title {
    font-weight: 700;
}

/* Button */
.u-pay-btn {
    font-weight: 700;
}

/* ============ NEW DONATION CARD (image match) ============ */
.u-donate-wrap{
    max-width: 820px;
    margin: 0 auto;
}
.u-form-card{
    background:#fff;
    border:1px solid #e6e9ee;
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 6px 16px rgba(0,0,0,.06), 0 20px 40px rgba(0,0,0,.08);
}
.u-form-card__head{
    padding:26px 30px 18px;
}
.u-form-card__head-title{
    font-size:26px;
    letter-spacing:1px;
    color:#656262;
    margin-bottom:4px;
}
.u-form-card__head-sub{
    font-size:13.5px;
    color:#6b7280;
}
.u-form-card__price-strip{
    background:linear-gradient(90deg,#1e90ff,#0d7bef);
    padding:14px 30px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    color:#fff;
}
.u-form-card__price-lbl{
    font-size:16.5px;
    font-weight:900;
    letter-spacing:1px;
    text-transform:uppercase;
}
.u-form-card__price-right{
    display: flex;
    flex-direction: column;
    align-items: flex-end;.u-about__pull
}

.u-form-card__price-val{
    font-size:24px;
    font-weight:800;
}
.u-form-body{
    padding:26px 30px 30px;
}
.u-form-title{
    font-family:Georgia, 'Times New Roman', serif;
    font-style:italic;
    font-size:19px;
    color:#222;
    margin-bottom:22px;
}

/* Quantity section */
.u-pill-label{
    display:block;
    font-size:16.5px;
    /*font-weight:800;*/
    letter-spacing:1px;
    color:#000000;
    /*text-transform:uppercase;*/
    margin-bottom:10px;
    font-family: "Kumbh Sans", sans-serif;
}
.u-qty-row{
    display:flex;
    gap:0px;
    align-items:stretch;
}
.u-pills{
    flex:1;
    display:flex;
    flex-wrap:nowrap;
    gap:8px;
}
.u-pill{
    border:1.6px solid #e2e5ea;
    background:#fff;
    color:##161a20;
    font-weight:600;
    font-size:12px;
    padding:10px 16px;
    border-radius:15px;
    cursor:pointer;
    transition:.2s;
    font-family: "Kumbh Sans", sans-serif;
}
.u-pill:hover{ border-color:#1e90ff; }
.u-pill.is-on{
    background:#1e90ff;
    border-color:#1e90ff;
    color:#fff;
}
.u-qty-total-box{
    min-width:110px;
    background:#eaf4ff;
    border:1px solid #cfe6ff;
    border-radius:14px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:10px 8px;
    text-align:center;
    transform: translateY(-10px);
}
.u-qty-total-lbl{
    font-size:10px;
    font-weight:800;
    letter-spacing:.5px;
    color:#5b7893;
    text-transform:uppercase;
    margin-bottom:2px;
}
.u-qty-total-val{
    font-size:22px;
    font-weight:800;
    color:#0d6efd;
}
.u-sum-qty-hidden{ display:none; }

.u-custom-row{
    display:flex;
    gap:10px;
    align-items:center;
    margin-top:-4px;
    margin-right: 24px;
}
.u-custom-input{
    flex:1;
    border:1.5px solid #e2e5ea;
    border-radius:10px;
    padding:10px 12px;
    font-size:14px;
}
.u-custom-lbl{ font-size:13px; color:#6b7280; }
#u-custom-error{
    display:none !important;
}
.u-min-note{
    font-size:13px;
    color:#6b7280;
    margin:8px 0 0px;
}

/* Form fields */
.u-field-label{
    display:block;
    font-size:16.5px;
    /*font-weight:300;*/
    letter-spacing:.6px;
    color:#000000;
    /* text-transform:uppercase; */
    margin-bottom:6px;
    font-family: "Kumbh Sans", sans-serif;
}
.u-input-wrap{
    position:relative;
}
.u-input-wrap .u-icon{
    position:absolute;
    left:14px;
    top:50%;
    transform:translateY(-50%);
    color:#9ca3af;
    font-size:14px;
    display:flex;
    align-items:center;
    gap:4px;
    pointer-events:none;
}
.u-input-wrap input{
    width:100%;
    border:1.5px solid #e2e5ea;
    border-radius:12px;
    padding:11px 14px 11px 40px;
    font-size:14px;
    color:#111;
    background:#fff;
}
.u-input-wrap input:focus{
    outline:none;
    border-color:#1e90ff;
    box-shadow:0 0 0 3px rgba(30,144,255,.12);
}

/* Default input style */
.u-input-wrap input {
    width: 100%;
    border: 1.6px solid #8a8a8a;
    border-left: 4px solid #dc3545;   /* Fixed Red Left Border */
    border-radius: 12px;
    padding: 11px 14px 11px 40px;
    font-size: 15px;
    color: #111;
    background: #fff;
    transition: border-color .25s ease, box-shadow .25s ease;
}

/* Phone input */
.u-phone-wrap input{
    padding-left:78px;
}

/* Proceed To Pay Button - Always White Text */
.u-donate-btn,
.u-donate-btn:hover,
.u-donate-btn:focus,
.u-donate-btn:active,
.u-donate-btn:visited,
.u-donate-btn:focus-visible {
    color: #fff !important;
    text-decoration: none !important;
}

/* Button click aagumbodhum white text */
.u-donate-btn:active {
    background: #0d7bef;
    color: #fff !important;
}

/* Disabled state */
.u-donate-btn:disabled {
    color: #fff !important;
}

/* Hover */
.u-input-wrap input:hover{
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    border-left-color: #dc3545;   /* Red stays */
}

/* Focus */
.u-input-wrap input:focus{
    outline: none;
    border-color: #e2e5ea;        /* No blue border */
    border-left: 4px solid #dc3545;
    box-shadow: 0 6px 16px rgba(0,0,0,.10); /* Only shadow */
}

/* Required field valid */
.u-input-wrap input:required:valid{
    border-left: 4px solid #dc3545;
}

/* Required field invalid */
.u-input-wrap input:required:invalid{
    border-left: 4px solid #ff0000
}

.u-input-wrap.u-phone-wrap input{
    padding-left:78px;
}
.u-phone-code{
    position:absolute;
    left:12px;
    top:50%;
    transform:translateY(-50%);
    font-size:13.5px;
    font-weight:700;
    color:#374151;
    display:flex;
    align-items:center;
    gap:4px;
    pointer-events:none;
}
.u-check-row{
    display:flex;
    align-items:flex-start;
    gap:8px;
    font-size:13.5px;
    color:#374151;
    margin:4px 0 18px;
}
.u-check-row input{ margin-top:3px; }
.u-donate-btn{
    width:100%;
    background:#1e90ff;
    color:#fff;
    border:none;
    border-radius:16px;
    padding:15px;
    font-size:16px;
    font-weight:800;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    cursor:pointer;
    transition:.2s;
}
.u-donate-btn:hover{ background:#0d7bef; }
.u-donate-btn:disabled{ opacity:.6; cursor:not-allowed; }
.u-form-note{
    text-align:center;
    font-size:12.5px;
    color:#6b7280;
    margin:16px 0 14px;
}
.u-trust{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:18px;
}
.u-trust-item{
    font-size:12.5px;
    color:#4b5563;
    font-weight:600;
}
@media (max-width:576px){
    .u-qty-row{ flex-direction:column; }
    .u-qty-total-box{ flex-direction:row; justify-content:space-between; padding:12px 16px; }
}

/* Gap between PAN input and info box */
.u-pan-info{
    margin-top:12px;
    width:fit-content;
    max-width:100%;
    display:inline-flex;
    border-radius:10px;
    padding:3px 25px !important;
}

.u-form-card .alert-info {
    background: var(--paper-2);
    border-color: var(--line);
    color: var(--secondary);
    font-family: 'Mulish', sans-serif;
    font-size: 10.8px;
    border-radius: 6px;
}

/* Mobile */
@media (max-width:768px){
    .u-pan-info{
        width:100%;
        
    }
}

@media (max-width:768px){

    .u-hero{
        min-height:auto;
    }

    .u-hero__img-col{
        width:100%;
        height:auto;
        min-height:0;
        overflow:hidden;
        display:block;
    }

.u-hero__img{
        position:relative;
        width:100%;
        height:43vh;
        max-height:300px;
        display:block;
        object-fit:cover;
        object-position:center;
    }

}



/* Mobile - Donation Form */
@media (max-width:768px){

    .u-donate-wrap{
        width:100%;
        max-width:100%;
        padding:0 12px;
    }

    .u-form-card{
        width:100%;
        border-radius:16px;
    }

    .u-form-card__head{
        padding:20px;
    }

    .u-form-card__price-strip{
        padding:14px 20px;
    }

    .u-form-body{
        padding:20px;
    }

    .u-form-card__head-title{
        font-size:22px;
    }

    .u-form-card__price-val{
        font-size:20px;
    }

    .u-form-title{
        font-size:18px;
    }

    .u-input-wrap input{
        height:48px;
        font-size:15px;
    }

    .u-phone-wrap input{
        padding-left:76px;
    }

    .u-donate-btn{
        height:52px;
        font-size:16px;
    }

}

@media (max-width:768px){

    .container-xl,
    .u-donate-wrap{
        width:95% !important;
        max-width:95% !important;
        padding:0 !important;
        margin:0 auto !important;
    }

    .u-form-card{
        width:100% !important;
        margin:0;
        border-radius:16px;
    }

    .u-form-body{
        padding:20px 16px;
    }

}

.u-hero__stat-strip{
        display:flex;
        justify-content:space-around;
        align-items:center;
        background:#fff;
        border-radius:14px;
        padding:12px 0;
    }

    .u-hero__hstat{
        flex:1;
        text-align:center;
        padding:0 10px;
        position:relative;
    }

    .u-hero__hstat:not(:last-child)::after{
        content:"";
        position:absolute;
        top:50%;
        right:0;
        transform:translateY(-50%);
        width:1px;
        height:28px;
        background:#e5e7eb;
    }

    .u-hero__hstat-num{
        display:block;
        font-size:16px;
        font-weight:700;
        color:#111827;
    }

    .u-hero__hstat-lbl{
        display:block;
        margin-top:4px;
        font-size:11px;
        color:#6b7280;
    }

/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

.u-form-card__head-title {
    font-size: 2rem;
    font-weight: 400;   /* DM Serif Display only supports 400 */
    line-height: 1.1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.u-form-card__head-title .title-black {
    font-weight: 900;
    color: #1b1b1b;
    font-family: 'Kumbh Sans';
    
}

.u-form-card__head-title .title-blue {
    font-weight: 900;
    color: #129fff;
    margin-left: 6px;
    font-family: 'Kumbh Sans';
}
/* Mobile */
@media (max-width: 576px) {
    .u-form-card__head-title {
        font-size: 1.4rem; 
        font-weight: 900;   /* 27px */
    }
}


@media (max-width:768px){

    .u-hero__stat-strip{
        display:flex;
        justify-content:space-around;
        align-items:center;
        background:#fff;
        border-radius:14px;
        padding:12px 0;
    }

    .u-hero__hstat{
        flex:1;
        text-align:center;
        padding:0 10px;
        position:relative;
    }

    .u-hero__hstat:not(:last-child)::after{
        content:"";
        position:absolute;
        top:50%;
        right:0;
        transform:translateY(-50%);
        width:1px;
        height:28px;
        background:#e5e7eb;
    }

    .u-hero__hstat-num{
        display:block;
        font-size:16px;
        font-weight:700;
        color:#111827;
    }

    .u-hero__hstat-lbl{
        display:block;
        margin-top:4px;
        font-size:11px;
        color:#6b7280;
    }

}


/* Description Expand / Collapse */

@media (max-width:768px){

    .u-about-wrap{
        position:relative;
    }

    .u-about__pull{
        position:relative;
        overflow:hidden;
        max-height:115px;          /* Approx 3 lines */
        line-height:1.7;
        padding:16px 18px;
        transition:max-height .35s ease;
    }

    /* Fade instead of cutting text */
    .u-about__pull::after{
        position:absolute;
        right:16px;
        bottom:18px;
        background:#fff;
        padding-left:6px;
        font-weight:bold;
        color:#555;
    }

    .u-about__pull.is-expanded{
        max-height:1000px;
    }

    .u-about__pull.is-expanded::after{
        display:none;
    }

    .u-desc-toggle{
        position:absolute;
        right:12px;
        bottom:12px;
        left:auto;
        transform:none;

        width:34px;
        height:34px;
        border-radius:50%;
        border:none;
        background:#fff;
        box-shadow:0 4px 12px rgba(0,0,0,.18);

        display:none;
        align-items:center;
        justify-content:center;

        color:#1e90ff;
        font-size:16px;
        z-index:20;
    }

}

/* PAN / 80G Info Box */
.u-pan-info{
    margin-top:12px;
    border-radius:10px;
    padding:8px 10px !important;
}

.u-pan-info span{
    display:flex;
    align-items:flex-start;
    gap:8px;
    line-height:1.5;
}

.u-pan-info i{
    flex-shrink:0;
    margin-top:2px;
    font-size:14px;
}

/* Mobile */
@media (max-width:768px){

    .u-pan-info{
        width:100%;
        padding:5px !important;
    }

    .u-pan-info span{
        font-size:11px;
        line-height:1.5;
    }

    .u-pan-info i{
        margin-top:3px;
    } 
}

@media (max-width:576px){

    .u-pills{
        display:flex;
        width:100%;
        gap:6px;
    }

    .u-pill{
        flex:1 1 20%;
        min-width:0;
        height:40px;
        padding:0;
        display:flex;
        align-items:center;
        justify-content:center;
        text-align:center;
        font-size:12px;
        line-height:1;
        white-space:nowrap;
    }

    /* Custom button */
    .u-pill[data-qty="custom"]{
        font-size:10px;
        letter-spacing:0;
        text-transform:none;
    }
}

/* PAN field - remove red left border */
#u-pan {
    border-left: 1.5px solid #e2e5ea !important;
}

/* Hover */
#u-pan:hover {
    border-left: 1.5px solid #e2e5ea !important;
}

/* Focus */
#u-pan:focus {
    border-left: 1.5px solid #e2e5ea !important;
}

/* Valid */
#u-pan:valid {
    border-left: 1.7px solid #7e8692 !important;
}

/* Invalid */
#u-pan:invalid {
    border-left: 1.5px solid #e2e5ea !important;
}
