/* Add Temple — focused contribution experience */
:root {
    --temple-ink: #241713;
    --temple-muted: #75665f;
    --temple-saffron: #e87920;
    --temple-gold: #f5b82e;
    --temple-maroon: #7f241d;
    --temple-cream: #fffaf3;
    --temple-line: #ead9c9;
}

.temple-intake-page {
    background:
        radial-gradient(circle at 8% 22%, rgba(245, 184, 46, .15), transparent 19rem),
        radial-gradient(circle at 93% 44%, rgba(232, 121, 32, .10), transparent 24rem),
        #fffaf5;
    color: var(--temple-ink);
}

.temple-intake-page .inst-hero {
    min-height: 500px;
    padding: 66px 24px 138px;
    text-align: center;
    background:
        linear-gradient(90deg, rgba(48, 13, 10, .88) 0%, rgba(89, 26, 18, .68) 46%, rgba(57, 16, 10, .18) 100%),
        url('sanatan_heritage_bg.png') center 48%/cover;
    overflow: hidden;
    isolation: isolate;
}

.temple-intake-page .inst-hero::before {
    z-index: -1;
    background:
        radial-gradient(circle at 16% 12%, rgba(255, 211, 103, .28), transparent 22rem),
        linear-gradient(180deg, rgba(24, 6, 4, .10), rgba(24, 6, 4, .30));
}

.temple-intake-page .inst-hero::after {
    display: none;
}

.temple-intake-page .inst-hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}
.temple-intake-page .inst-crumb { margin-bottom: 16px; }
.temple-intake-page .inst-hero .mission-sanskrit-top { margin-left: auto; font-size: clamp(.78rem, 1.5vw, 1rem); letter-spacing: 1.2px; }
.temple-intake-page .inst-hero .mission-om { color: #ffd76a; text-shadow: 0 10px 30px rgba(0,0,0,.45); }
.temple-intake-page .inst-hero h1 { max-width: 760px; margin-left: auto; margin-right: auto; font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.025em; line-height: 1.2; }
.temple-intake-page .inst-hero .lead { max-width: 690px; margin-left: auto; margin-right: auto; font-size: 1.02rem; color: rgba(255,255,255,.9); }
.temple-intake-page .inst-hero-badges { justify-content: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.temple-intake-page .inst-badge-item { background: rgba(255,255,255,.1); border-color: rgba(255,234,177,.28); backdrop-filter: blur(8px); }

.temple-intake-page .inst-main-section {
    max-width: 1180px;
    padding: 0 22px 88px;
    margin: -76px auto 0;
}

.temple-intake-page .inst-grid-single { max-width: none; }
.temple-intake-page .inst-card {
    padding: 0;
    overflow: visible;
    border-radius: 26px;
    border: 1px solid rgba(120, 65, 32, .13);
    box-shadow: 0 25px 60px rgba(78, 34, 20, .16);
    background: rgba(255,255,255,.96);
}
.temple-intake-page .inst-card::before { height: 5px; border-radius: 26px 26px 0 0; background: linear-gradient(90deg, #7f241d, #ed8a25 48%, #f6c547); }
.temple-intake-page .inst-card-header {
    padding: 30px 36px 25px;
    margin: 0;
    align-items: flex-start;
    background: linear-gradient(110deg, #fff9ef, #fff 70%);
    border-radius: 26px 26px 0 0;
}
.temple-intake-page .inst-card-icon { width: 64px; height: 64px; min-width: 64px; border-radius: 20px; box-shadow: 0 12px 24px rgba(213, 123, 33, .18); }
.temple-intake-page .inst-card-title h2 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); color: var(--temple-ink); }
.temple-intake-page .inst-card-title p { max-width: 800px; color: var(--temple-muted); }
.temple-intake-page #addTempleForm { padding: 28px 36px 36px; }

.temple-intake-page .temple-stepper-wrap {
    position: sticky;
    top: 10px;
    z-index: 10;
    padding: 18px 20px 13px;
    border: 1px solid #efddc5;
    border-radius: 18px;
    background: rgba(255, 250, 244, .96);
    box-shadow: 0 10px 28px rgba(75, 34, 17, .08);
    backdrop-filter: blur(15px);
}
.temple-intake-page .temple-stepper-title { color: var(--temple-maroon); font-size: .95rem; }
.temple-intake-page .temple-stepper-percent { background: #fff0cf; color: #a5520e; padding: 5px 12px; }
.temple-intake-page .temple-progress-track { height: 6px; margin-bottom: 13px; background: #f3e4d1; }
.temple-intake-page .temple-progress-bar { background: linear-gradient(90deg, var(--temple-maroon), var(--temple-saffron), var(--temple-gold)); }
.temple-intake-page .temple-steps-nav { gap: 6px; padding-bottom: 2px; }
.temple-intake-page .temple-step-item { padding: 7px 11px; border-radius: 12px; border-color: transparent; background: transparent; }
.temple-intake-page .temple-step-item:hover { background: #fff1df; border-color: #f1d3b0; }
.temple-intake-page .temple-step-item.active { background: var(--temple-maroon); box-shadow: 0 7px 14px rgba(105, 29, 20, .2); }
.temple-intake-page .temple-step-label { font-size: .77rem; }
.temple-intake-page .temple-step-badge { width: 22px; height: 22px; background: #f2dfcb; }

.temple-intake-page .temple-step-pane { padding-top: 30px; }
.temple-intake-page .inst-sec-heading {
    margin-bottom: 24px;
    padding: 0 0 14px;
    color: var(--temple-ink);
    font-size: 1.06rem;
    border-bottom: 1px solid var(--temple-line);
}
.temple-intake-page .inst-sec-num { width: 30px; height: 30px; background: linear-gradient(135deg, var(--temple-saffron), #c85b17); box-shadow: 0 5px 10px rgba(214, 103, 25, .2); }
.temple-intake-page .inst-form-row, .temple-intake-page .inst-form-row-3 { gap: 20px; margin-bottom: 20px; }
.temple-intake-page .inst-form-group { margin-bottom: 20px; }
.temple-intake-page .inst-label { margin-bottom: 8px; color: #493831; font-size: .85rem; }
.temple-intake-page .inst-input, .temple-intake-page .inst-select, .temple-intake-page .inst-textarea {
    min-height: 48px;
    border: 1px solid #dfcfc0;
    border-radius: 12px;
    background: #fffdfa;
    box-shadow: inset 0 1px 1px rgba(72, 34, 15, .025);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.temple-intake-page .inst-textarea { min-height: 112px; padding-top: 13px; }
.temple-intake-page .inst-input:hover, .temple-intake-page .inst-select:hover, .temple-intake-page .inst-textarea:hover { border-color: #cda980; }
.temple-intake-page .inst-input:focus, .temple-intake-page .inst-select:focus, .temple-intake-page .inst-textarea:focus { border-color: var(--temple-saffron); background: #fff; box-shadow: 0 0 0 4px rgba(232, 121, 32, .12); }
.temple-intake-page .inst-field-hint { color: #89766b; font-size: .78rem; }

.temple-intake-page .temple-step-nav { margin-top: 34px; padding-top: 22px; border-color: var(--temple-line); }
.temple-intake-page .temple-step-next, .temple-intake-page .inst-submit-btn { border-radius: 12px; background: linear-gradient(135deg, #9b321f, #d96e1d); box-shadow: 0 10px 20px rgba(174, 67, 22, .22); }
.temple-intake-page .temple-step-next:hover, .temple-intake-page .inst-submit-btn:hover { background: linear-gradient(135deg, #7d241b, #c65b12); box-shadow: 0 13px 25px rgba(174, 67, 22, .3); }
.temple-intake-page .temple-step-prev { border-radius: 12px; background: #fff8ef; }

.temple-intake-page .temple-optional-details { margin: 28px 0 0; border: 1px solid #ead8c4; border-radius: 16px; background: #fffaf4; overflow: hidden; }
.temple-intake-page .temple-optional-details summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 17px 20px; color: #6e291f; font-weight: 700; cursor: pointer; list-style: none; }
.temple-intake-page .temple-optional-details summary::-webkit-details-marker { display: none; }
.temple-intake-page .temple-optional-details summary > span:first-child { display: flex; align-items: center; gap: 9px; }
.temple-intake-page .temple-optional-details summary small { color: #92796a; font-weight: 500; }
.temple-intake-page .temple-optional-details .details-arrow { transition: transform .2s ease; }
.temple-intake-page .temple-optional-details[open] .details-arrow { transform: rotate(180deg); }
.temple-intake-page .temple-optional-details-content { padding: 0 20px 20px; }
.temple-intake-page .temple-optional-details-content .inst-form-section { margin: 0 0 18px; padding: 23px; border: 1px solid #eedfce; border-radius: 14px; background: #fff; }
.temple-intake-page .temple-optional-details-content .inst-form-section:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
    .temple-intake-page .inst-hero { min-height: auto; padding: 40px 14px 96px; text-align: center; background-position: 62% center; }
    .temple-intake-page .inst-hero-content { margin: 0 auto; padding: 0; }
    .temple-intake-page .inst-hero .mission-sanskrit-top { margin-left: auto; }
    .temple-intake-page .inst-hero .lead { margin-left: auto; }
    .temple-intake-page .inst-hero-badges { justify-content: center; }
    .temple-intake-page .inst-main-section { padding: 0 12px 60px; margin-top: -60px; }
    .temple-intake-page .inst-card-header { padding: 24px 20px 20px; gap: 13px; }
    .temple-intake-page .inst-card-icon { width: 48px; height: 48px; min-width: 48px; border-radius: 14px; }
    .temple-intake-page .inst-card-icon .material-symbols-outlined { font-size: 25px; }
    .temple-intake-page #addTempleForm { padding: 20px; }
    .temple-intake-page .temple-stepper-wrap { top: 4px; margin: 0 -4px; padding: 14px 13px 10px; }
    .temple-intake-page .temple-step-label { display: none; }
    .temple-intake-page .temple-step-item { padding: 7px 9px; }
    .temple-intake-page .temple-step-pane { padding-top: 24px; }
    .temple-intake-page .temple-step-nav { align-items: stretch; }
    .temple-intake-page .temple-step-btn, .temple-intake-page .inst-submit-btn { justify-content: center; flex: 1; }
    .temple-intake-page .inst-submit-btn { min-width: 0 !important; }
    .temple-intake-page .temple-optional-details-content { padding: 0 11px 11px; }
    .temple-intake-page .temple-optional-details-content .inst-form-section { padding: 18px 14px; }
}
