/*
 * Griha Pravesh Puja Booking Engine — Frontend CSS
 * Brand: Maroon #7A1F2B · Gold #C9A227 · Cream #FDF6E8 · Dark #4A121C
 * All rules scoped under .grp-wrap to avoid theme collisions.
 */

/* ── Reset & Base ────────────────────────────────────────────────── */
.grp-wrap,
.grp-wrap * {
    box-sizing: border-box;
}
.grp-wrap {
    font-family: 'Inter Tight', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: #2c1810;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 16px 48px;
}

/* ── WC Notice ───────────────────────────────────────────────────── */
.grp-wc-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 24px;
    color: #856404;
    font-size: 14px;
}

/* ── Hero Banner ─────────────────────────────────────────────────── */
.grp-hero-banner {
    background: linear-gradient(135deg, #4A121C 0%, #7A1F2B 60%, #9B2435 100%);
    border-radius: 16px;
    padding: 40px 32px 32px;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.grp-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A227' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
}
.grp-hero-om {
    font-size: 42px;
    display: block;
    margin-bottom: 8px;
    position: relative;
}
.grp-hero-title {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 800;
    color: #FDF6E8;
    margin-bottom: 6px;
    position: relative;
    letter-spacing: -0.3px;
}
.grp-hero-subtitle {
    color: #C9A227;
    font-size: 15px;
    margin-bottom: 18px;
    position: relative;
    font-weight: 500;
}
.grp-hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    position: relative;
}
.grp-hero-badge {
    background: rgba(201,162,39,0.18);
    border: 1px solid rgba(201,162,39,0.4);
    color: #FDF6E8;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 500;
}

/* ── Urgency Bar ─────────────────────────────────────────────────── */
.grp-urgency-bar {
    background: #fff8e6;
    border: 1px solid #f0d060;
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 24px;
    text-align: center;
}
.grp-urgency-text {
    font-weight: 700;
    font-size: 14px;
    color: #7A1F2B;
    margin-bottom: 8px;
}
.grp-urgency-progress-wrap {
    background: #f0e0c0;
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 6px;
}
.grp-urgency-progress-fill {
    background: linear-gradient(90deg, #C9A227, #e8b800);
    height: 100%;
    border-radius: 20px;
    transition: width 0.6s ease;
}
.grp-urgency-label {
    font-size: 12px;
    color: #8a6020;
}

/* ── Steps Bar ───────────────────────────────────────────────────── */
.grp-steps-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 0 28px;
}
.grp-step-connector {
    flex: 1;
    max-width: 80px;
    height: 2px;
    background: #e8d5a3;
}
.grp-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.grp-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0e5c8;
    border: 2px solid #d4b87a;
    color: #8a6030;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}
.grp-step-label {
    font-size: 12px;
    font-weight: 600;
    color: #b09060;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.grp-step-item.active .grp-step-circle {
    background: #7A1F2B;
    border-color: #7A1F2B;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(122,31,43,0.15);
}
.grp-step-item.active .grp-step-label {
    color: #7A1F2B;
    font-weight: 700;
}
.grp-step-item.done .grp-step-circle {
    background: #C9A227;
    border-color: #C9A227;
    color: #fff;
}
.grp-step-item.done .grp-step-label {
    color: #C9A227;
}

/* ── Section ─────────────────────────────────────────────────────── */
.grp-section {
    margin-bottom: 32px;
}
.grp-section-title {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 800;
    color: #4A121C;
    margin: 0 0 8px;
    letter-spacing: -0.2px;
}
.grp-section-subtitle {
    color: #7a5c3a;
    font-size: 14px;
    margin: 0 0 24px;
}
.grp-no-packages {
    text-align: center;
    padding: 40px 20px;
    color: #9a8060;
    font-size: 15px;
}

/* ── Package Cards ───────────────────────────────────────────────── */
.grp-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding-top: 22px; /* clearance for floating badge */
    align-items: start;
}
.grp-pkg-card {
    --card-color: #7A1F2B;
    background: #fff;
    border: 1.5px solid #E0D3BC;
    border-radius: 16px;
    position: relative;
    overflow: visible;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.grp-pkg-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.1);
}
.grp-pkg-card.grp-pkg-featured {
    border: 2px solid #4A121C;
    box-shadow: 0 8px 28px rgba(74,18,28,0.12);
}
.grp-pkg-card.grp-pkg-selected .grp-select-pkg-btn {
    background: #7A1F2B;
    color: #fff;
    border-color: #7A1F2B;
}

/* Floating "MOST RECOMMENDED" badge */
.grp-pkg-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #4A121C;
    color: #FDF6E8;
    font-size: 10px;
    font-weight: 800;
    padding: 5px 18px;
    border-radius: 20px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 2;
}

.grp-pkg-inner {
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
}

/* Name & description */
.grp-pkg-name {
    font-size: 22px;
    font-weight: 700;
    color: #2c1810;
    line-height: 1.2;
    margin-bottom: 6px;
    font-family: Georgia, 'Times New Roman', serif;
}
.grp-pkg-short-desc {
    font-size: 13.5px;
    color: #7a6a58;
    line-height: 1.55;
    margin-bottom: 18px;
}

/* Price block */
.grp-pkg-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 9px;
}
.grp-pkg-price {
    font-size: 32px;
    font-weight: 800;
    color: #2c1810;
    line-height: 1;
    letter-spacing: -0.5px;
}
.grp-pkg-price-label {
    font-size: 12.5px;
    color: #9a8878;
    font-weight: 500;
}
.grp-pkg-meta-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}
.grp-pkg-meta-item {
    font-size: 13px;
    color: #6a5a48;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Divider */
.grp-pkg-divider {
    height: 1px;
    background: #EAE0D0;
    margin: 16px 0;
}

/* Feature list with separators */
.grp-pkg-includes {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.grp-pkg-includes li {
    font-size: 13.5px;
    color: #3a2a1a;
    padding: 9px 0 9px 26px;
    position: relative;
    line-height: 1.45;
    border-bottom: 1px solid #EAE0D0;
}
.grp-pkg-includes li:last-child {
    border-bottom: none;
}
.grp-pkg-includes li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2c1810;
    font-weight: 700;
    font-size: 13px;
    top: 10px;
}

/* Best for box */
.grp-pkg-best-for {
    background: #F5F0E6;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #5a4a38;
    line-height: 1.55;
}
.grp-pkg-best-for strong {
    color: #2c1810;
    font-weight: 700;
}

/* CTA Button */
.grp-select-pkg-btn {
    display: block;
    width: 100%;
    padding: 13px 20px;
    background: transparent;
    color: #2c1810;
    border: 2px solid #2c1810;
    border-radius: 50px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    letter-spacing: 0.2px;
    text-align: center;
    font-family: inherit;
}
.grp-select-pkg-btn:hover {
    background: #2c1810;
    color: #fff;
}
.grp-pkg-featured .grp-select-pkg-btn {
    background: #B8902A;
    color: #fff;
    border-color: #B8902A;
}
.grp-pkg-featured .grp-select-pkg-btn:hover {
    background: #9e7a22;
    border-color: #9e7a22;
}

/* ── Add-On Cards ────────────────────────────────────────────────── */
.grp-addons-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}
.grp-addon-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fdf8f0;
    border: 2px solid #e8d5a3;
    border-radius: 12px;
    padding: 16px 18px;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s;
    position: relative;
}
.grp-addon-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.grp-addon-card:has(input:checked) {
    border-color: #7A1F2B;
    background: #fff5f5;
}
.grp-addon-check-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid #c8a870;
    background: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s;
    position: relative;
}
.grp-addon-card:has(input:checked) .grp-addon-check-icon {
    background: #7A1F2B;
    border-color: #7A1F2B;
}
.grp-addon-card:has(input:checked) .grp-addon-check-icon::after {
    content: '✓';
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    position: absolute;
}
.grp-addon-icon {
    font-size: 26px;
    flex-shrink: 0;
}
.grp-addon-info {
    flex: 1;
    min-width: 0;
}
.grp-addon-info strong.grp-addon-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #2c1810;
    margin-bottom: 2px;
}
.grp-addon-desc {
    font-size: 12.5px;
    color: #7a5c3a;
    display: block;
    line-height: 1.4;
}
.grp-addon-price {
    font-size: 16px;
    font-weight: 800;
    color: #7A1F2B;
    flex-shrink: 0;
    white-space: nowrap;
}

/* ── Summary Card ────────────────────────────────────────────────── */
.grp-summary-card {
    background: linear-gradient(135deg, #4A121C 0%, #7A1F2B 100%);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    color: #FDF6E8;
}
.grp-summary-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #C9A227;
    margin-bottom: 14px;
}
.grp-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}
.grp-summary-row:last-child {
    border-bottom: none;
}
.grp-summary-row span {
    color: rgba(253,246,232,0.8);
}
.grp-summary-row strong {
    color: #FDF6E8;
}
.grp-summary-total {
    padding-top: 12px;
    margin-top: 6px;
    border-top: 1px solid rgba(201,162,39,0.4) !important;
    border-bottom: none !important;
}
.grp-summary-total span {
    color: #C9A227 !important;
    font-weight: 700;
    font-size: 15px;
}
.grp-summary-total strong {
    color: #C9A227 !important;
    font-size: 20px;
    font-weight: 800;
}

/* ── Booking Form ────────────────────────────────────────────────── */
.grp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
.grp-form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.grp-form-row label {
    font-size: 13px;
    font-weight: 600;
    color: #4A121C;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.grp-req {
    color: #c0392b;
    font-weight: 700;
}
.grp-optional {
    font-weight: 400;
    font-size: 11px;
    color: #9a7a5a;
}
.grp-form-row input {
    border: 1.5px solid #d8c4a0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: #2c1810;
    background: #fff;
    transition: border-color 0.18s, box-shadow 0.18s;
    width: 100%;
    font-family: inherit;
}
.grp-form-row input:focus {
    outline: none;
    border-color: #7A1F2B;
    box-shadow: 0 0 0 3px rgba(122,31,43,0.12);
}
.grp-form-row input::placeholder {
    color: #c0a880;
}
.grp-form-row input[type="date"] {
    cursor: pointer;
}

/* ── Step Navigation ─────────────────────────────────────────────── */
.grp-step-nav {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
    flex-wrap: wrap;
}
.grp-btn {
    padding: 12px 28px;
    border-radius: 9px;
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s;
    letter-spacing: 0.2px;
    font-family: inherit;
}
.grp-btn-back {
    background: #f5ece0;
    color: #7a5c3a;
    border: 1.5px solid #d8c4a0;
}
.grp-btn-back:hover {
    background: #ede0cc;
    border-color: #c0a880;
}
.grp-btn-next {
    background: #C9A227;
    color: #2c1810;
    flex: 1;
}
.grp-btn-next:hover {
    background: #b8911f;
}
.grp-btn-submit {
    background: linear-gradient(135deg, #7A1F2B 0%, #9B2435 100%);
    color: #fff;
    flex: 1;
    font-size: 15px;
    padding: 14px 32px;
    box-shadow: 0 4px 16px rgba(122,31,43,0.3);
}
.grp-btn-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.grp-btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* ── Form Message ────────────────────────────────────────────────── */
.grp-form-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}
.grp-form-message.grp-error {
    background: #fdecea;
    border: 1px solid #f4b8b8;
    color: #c0392b;
}
.grp-form-message.grp-success-msg {
    background: #edfaf1;
    border: 1px solid #a8e6bf;
    color: #1e7e3a;
}

/* ── Payment Note ────────────────────────────────────────────────── */
.grp-payment-note {
    text-align: center;
    font-size: 12px;
    color: #9a7a5a;
    margin: 16px 0 0;
}

/* ── Spinner ─────────────────────────────────────────────────────── */
.grp-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: grp-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-left: 6px;
}
@keyframes grp-spin {
    to { transform: rotate(360deg); }
}

/* ── Step visibility ─────────────────────────────────────────────── */
.grp-step-hidden {
    display: none !important;
}

/* ── Success Screen ──────────────────────────────────────────────── */
.grp-success-wrap {
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(135deg, #fdf8f0, #fff5f0);
    border: 2px solid #e8d5a3;
    border-radius: 16px;
}
.grp-success-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 16px;
    animation: grp-pulse 2s ease-in-out infinite;
}
@keyframes grp-pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.08); }
}
.grp-success-wrap h2 {
    font-size: 26px;
    font-weight: 800;
    color: #4A121C;
    margin: 0 0 12px;
}
.grp-success-wrap p {
    color: #5a3a20;
    font-size: 15px;
    max-width: 480px;
    margin: 0 auto 20px;
    line-height: 1.65;
}
.grp-success-detail {
    display: inline-block;
    background: #fff;
    border: 1px solid #e8d5a3;
    border-radius: 10px;
    padding: 16px 24px;
    text-align: left;
    font-size: 14px;
    color: #4a3020;
    line-height: 1.8;
    min-width: 280px;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .grp-packages-grid {
        grid-template-columns: 1fr;
    }
    .grp-form-grid {
        grid-template-columns: 1fr;
    }
    .grp-hero-banner {
        padding: 28px 20px 22px;
    }
    .grp-step-nav {
        flex-direction: column;
    }
    .grp-btn-next,
    .grp-btn-submit {
        width: 100%;
    }
    .grp-btn-back {
        width: 100%;
        text-align: center;
    }
    .grp-steps-bar {
        gap: 4px;
    }
    .grp-step-label {
        font-size: 10px;
    }
}
