/* =============================================
   ProRuah – Pricing Page (matches index.html theme)
   Deep Emerald × Gold × Dark
   ============================================= */

/* ── Page base ── */
body { background: #F4FAF7; }
section { padding: 0; }

/* ============================================================
   PRICING HERO  — dark bg same as index hero
   ============================================================ */
.pricing-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    background: #0F1C14;          /* identical to index #hero */
    overflow: hidden;
    padding: 120px 0 90px;
}
.pricing-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 65% 80% at 10% 50%, rgba(13,122,92,.55) 0%, transparent 70%),
        radial-gradient(ellipse 45% 50% at 85% 20%, rgba(201,168,76,.18) 0%, transparent 60%);
    z-index: 0;
}
.ph-overlay {
    position: absolute; inset: 0; z-index: 0;
    background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 28px 28px;
}
.pricing-hero-content { position: relative; z-index: 2; }

/* Hero typography — all fully readable on dark */
.ph-title {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 900;
    color: #ffffff;               /* solid white — no bleed */
    letter-spacing: -.5px;
    margin-bottom: 14px;
    line-height: 1.1;
}
.ph-accent {
    background: linear-gradient(90deg, #C9A84C, #F5C842);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ph-sub {
    color: rgba(255,255,255,.72);  /* readable on dark */
    font-size: .97rem;
    line-height: 1.75;
    max-width: 580px;
    margin: 0 auto 24px;
}
.ph-badges {
    display: flex; flex-wrap: wrap;
    justify-content: center; gap: 10px;
}
.ph-badges span {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.85);
    font-size: .78rem; font-weight: 600;
    padding: 7px 18px; border-radius: 30px;
}
.ph-badges span i { color: #F5C842; }
.ph-wave {
    position: absolute; bottom: 0; left: 0; right: 0;
    line-height: 0; z-index: 1;
}
.ph-wave svg { width: 100%; height: 60px; }

/* ============================================================
   PRICING SECTION
   ============================================================ */
.pricing-section {
    background: #F4FAF7;
    padding: 72px 0 56px;
}

/* Grid — 5 equal columns, all cards same height */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    align-items: stretch;          /* equal height */
}

/* ── Base Card — flex column so button sticks to bottom ── */
.pricing-card {
    background: #fff;
    border-radius: 20px;
    padding: 26px 20px 22px;
    border: 2px solid #D4E8DF;
    box-shadow: 0 4px 20px rgba(10,92,69,.07);
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;        /* stack content vertically */
    height: 100%;                  /* fill grid row height */
}
.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(10,92,69,.15);
    border-color: #0D7A5C;
}

/* Gem badge top-right */
.pc-gem-badge {
    position: absolute; top: 14px; right: 14px;
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem;
    background: rgba(10,92,69,.08);
    color: #0A5C45;
}

/* Plan top block */
.pc-top { margin-bottom: 12px; }
.pc-tier {
    display: inline-block;
    font-size: .66rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 2px;
    padding: 3px 12px; border-radius: 20px;
    margin-bottom: 8px;
    background: #E6F4F0;
    color: #0A5C45;
    border: 1px solid rgba(10,92,69,.18);
}
.pc-name {
    font-family: 'Raleway', sans-serif;
    font-size: 1.55rem; font-weight: 900;
    color: #111D16; margin: 0 0 3px;
    letter-spacing: -.3px;
    line-height: 1.15;
}
.pc-range {
    font-size: .78rem; font-weight: 600;
    color: #6B7F74; margin: 0;
}

/* Deployment badge */
.pc-deploy {
    display: flex; align-items: center; gap: 6px;
    font-size: .74rem; font-weight: 600;
    color: #0D7A5C;
    background: #E6F4F0;
    padding: 7px 12px; border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid rgba(10,92,69,.15);
    flex-shrink: 0;
}
.pc-deploy i { color: #C9A84C; font-size: .88rem; }

/* Features list — flex:1 pushes button down */
.pc-features {
    list-style: none; padding: 0; margin: 0 0 20px;
    flex: 1;
}
.pc-features li {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: .82rem; color: #3A4A40;
    padding: 6px 0;
    border-bottom: 1px solid #EDF5F1;
    line-height: 1.45;
}
.pc-features li:last-child { border-bottom: none; }
.pc-features li i {
    color: #0A5C45; font-size: .9rem;
    flex-shrink: 0; margin-top: 1px;
}

/* ── CTA Button — always at bottom, solid readable ── */
.pc-btn {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: .86rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    transition: all .3s ease;
    cursor: pointer;
    margin-top: auto;              /* pushes to bottom */
    flex-shrink: 0;
    /* Default: solid primary */
    background: #0A5C45;
    color: #ffffff !important;
    border: 2px solid #0A5C45;
    box-shadow: 0 4px 14px rgba(10,92,69,.25);
    letter-spacing: .2px;
}
.pc-btn:hover {
    background: #0D7A5C;
    border-color: #0D7A5C;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10,92,69,.35);
    color: #fff !important;
}

/* ── Plan accent top borders ── */
.pc-quartz   { border-top: 4px solid #78909C; }
.pc-sapphire { border-top: 4px solid #1565C0; }
.pc-ruby     { border-top: 4px solid #C62828; }
.pc-emerald  { border-top: 4px solid #0A5C45; }
.pc-diamond  { border-top: 4px solid #C9A84C; }

/* Tier badge accent colors */
.pc-quartz   .pc-tier { background:#ECEFF1; color:#455A64; border-color:#B0BEC5; }
.pc-sapphire .pc-tier { background:#E3F2FD; color:#1565C0; border-color:#90CAF9; }
.pc-ruby     .pc-tier { background:#FFEBEE; color:#C62828; border-color:#EF9A9A; }
.pc-emerald  .pc-tier { background:#E6F4F0; color:#0A5C45; border-color:#A5D6C5; }
.pc-diamond  .pc-tier { background:#FFF8E7; color:#8B6914; border-color:#F5C842; }

/* Gem badge accent */
.pc-quartz   .pc-gem-badge { background:#ECEFF1; color:#455A64; }
.pc-sapphire .pc-gem-badge { background:#E3F2FD; color:#1565C0; }
.pc-ruby     .pc-gem-badge { background:#FFEBEE; color:#C62828; }
.pc-emerald  .pc-gem-badge { background:#E6F4F0; color:#0A5C45; }
.pc-diamond  .pc-gem-badge { background:#FFF8E7; color:#C9A84C; }

/* ── Popular card (Ruby) ── */
.pc-popular-wrap { position: relative; z-index: 2; }
.pc-popular {
    border-color: #C62828 !important;
    box-shadow: 0 8px 40px rgba(198,40,40,.2);
    transform: translateY(-10px);
    overflow: visible;
}
.pc-popular:hover { transform: translateY(-16px); }

.pc-popular-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: linear-gradient(135deg, #C62828, #E53935);
    color: #fff; font-size: .7rem; font-weight: 800;
    padding: 5px 14px; border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(198,40,40,.35);
    letter-spacing: .5px;
    margin-bottom: 10px;
    width: fit-content;
}

/* Ruby CTA — solid red */
.pc-btn-popular {
    background: linear-gradient(135deg, #C62828, #E53935) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 6px 20px rgba(198,40,40,.35) !important;
}
.pc-btn-popular:hover {
    background: linear-gradient(135deg, #b71c1c, #C62828) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 28px rgba(198,40,40,.45) !important;
}

/* Diamond CTA — gold, dark text for contrast */
.pc-btn-diamond {
    background: linear-gradient(135deg, #C9A84C, #F5C842) !important;
    color: #1A2E24 !important;
    border-color: transparent !important;
    box-shadow: 0 6px 20px rgba(201,168,76,.35) !important;
    font-weight: 800 !important;
}
.pc-btn-diamond:hover {
    background: linear-gradient(135deg, #b8932a, #e6b830) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 28px rgba(201,168,76,.45) !important;
}

/* Pricing note */
.pricing-note {
    text-align: center;
    font-size: .84rem; color: #6B7F74;
    margin-top: 36px; padding: 16px 24px;
    background: #fff; border-radius: 12px;
    border: 1px solid #D4E8DF;
}
.pricing-note strong { color: #0A5C45; }

/* ============================================================
   COMPARISON TABLE  — dark header matching index features section
   ============================================================ */
.compare-section {
    background: #fff;
    padding: 72px 0;
    border-top: 1px solid #D4E8DF;
}
.table-responsive {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(10,92,69,.1);
    border: 1px solid #D4E8DF;
}
.compare-table {
    width: 100%; border-collapse: collapse;
    font-size: .85rem;
}
.compare-table thead tr { background: #0F1C14; }
.compare-table th {
    padding: 18px 14px;
    font-family: 'Raleway', sans-serif;
    font-weight: 800; font-size: .78rem;
    text-transform: uppercase; letter-spacing: .8px;
    color: rgba(255,255,255,.9);
    text-align: center; border: none;
}
.compare-table th.ct-feature { text-align: left; color: rgba(255,255,255,.55); }
.compare-table th small {
    display: block; font-size: .68rem; font-weight: 600;
    opacity: .7; text-transform: none; letter-spacing: 0; margin-top: 2px;
}
.ct-quartz   { color: #B0BEC5 !important; }
.ct-sapphire { color: #90CAF9 !important; }
.ct-ruby     { color: #EF9A9A !important; }
.ct-emerald  { color: #80CBC4 !important; }
.ct-diamond  { color: #F5C842 !important; }

.compare-table tbody tr { border-bottom: 1px solid #EDF5F1; }
.compare-table tbody tr:nth-child(even) { background: #F9FDFB; }
.compare-table tbody tr:hover { background: #EEF8F4; }
.compare-table td {
    padding: 14px; color: #3A4A40;
    text-align: center; vertical-align: middle;
    font-size: .84rem;
}
.compare-table td:first-child {
    text-align: left; font-weight: 600;
    color: #111D16; padding-left: 20px;
}
.ct-yes { color: #0A5C45; font-size: 1.15rem; }
.ct-no  { color: #CBD5D0; font-size: 1.1rem; }

/* ============================================================
   QUOTE MODAL — dark header, clean body
   ============================================================ */
.modal-backdrop { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.quote-modal {
    border: none; border-radius: 24px; overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,.4);
}

/* Dark header matching index contact/features sections */
.qm-header {
    background: #0F1C14;
    position: relative; overflow: hidden;
}
.qm-header::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 100% at 0% 50%, rgba(13,122,92,.5) 0%, transparent 65%),
        radial-gradient(ellipse 40% 60% at 90% 20%, rgba(201,168,76,.18) 0%, transparent 60%);
    pointer-events: none;
}
.qm-header-inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 28px;
}
.qm-header-left {
    display: flex; align-items: center; gap: 14px;
}
.qm-icon {
    width: 46px; height: 46px; border-radius: 13px;
    background: rgba(201,168,76,.2);
    border: 1px solid rgba(201,168,76,.35);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem; color: #F5C842; flex-shrink: 0;
}
.qm-header h5 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.15rem; font-weight: 900;
    color: #ffffff; margin: 0 0 2px;
}
#qm-plan-subtitle {
    font-size: .76rem; color: rgba(255,255,255,.5); margin: 0;
}
.qm-close {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.7);
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem; cursor: pointer;
    transition: all .2s ease; flex-shrink: 0;
}
.qm-close:hover { background: rgba(255,255,255,.22); color: #fff; }

/* ── Modal Body ── */
.qm-body { padding: 26px 28px; background: #F9FDFB; }

/* Plan chip */
.qm-plan-chip {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    padding: 11px 16px; border-radius: 12px; margin-bottom: 22px;
    font-weight: 700; font-size: .88rem;
    background: #E6F4F0; color: #0A5C45;
    border: 1.5px solid rgba(10,92,69,.2);
}
.qm-chip-range {
    margin-left: auto; font-size: .74rem; font-weight: 600;
    color: #6B7F74; background: #fff;
    padding: 3px 12px; border-radius: 20px; border: 1px solid #D4E8DF;
}
.qm-chip-quartz   { background:#ECEFF1; color:#455A64; border-color:#B0BEC5; }
.qm-chip-sapphire { background:#E3F2FD; color:#1565C0; border-color:#90CAF9; }
.qm-chip-ruby     { background:#FFEBEE; color:#C62828; border-color:#EF9A9A; }
.qm-chip-emerald  { background:#E6F4F0; color:#0A5C45; border-color:#A5D6C5; }
.qm-chip-diamond  { background:#FFF8E7; color:#8B6914; border-color:#F5C842; }

/* Option selector cards */
.qm-option-group { display: flex; flex-direction: column; gap: 8px; }
.qm-option { cursor: pointer; margin: 0; }
.qm-option input[type="radio"] { display: none; }
.qm-opt-card {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 12px;
    background: #fff; border: 2px solid #D4E8DF;
    transition: all .2s ease; user-select: none;
}
.qm-opt-card i {
    width: 38px; height: 38px; border-radius: 10px;
    background: #E6F4F0; color: #0A5C45;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.qm-opt-title { display: block; font-size: .85rem; font-weight: 700; color: #111D16; line-height: 1.2; }
.qm-opt-desc  { display: block; font-size: .72rem; color: #6B7F74; margin-top: 1px; }

.qm-option:hover .qm-opt-card { border-color: #0D7A5C; background: #F4FAF7; }
.qm-option.selected .qm-opt-card {
    border-color: #0A5C45; background: #E6F4F0;
    box-shadow: 0 0 0 3px rgba(10,92,69,.12);
}
.qm-option.selected .qm-opt-card i { background: #0A5C45; color: #fff; }
.qm-option.selected .qm-opt-title { color: #0A5C45; }

/* Form inputs */
.qm-body .form-label {
    font-size: .79rem; font-weight: 700;
    color: #111D16; margin-bottom: 5px;
    display: flex; align-items: center; gap: 5px;
}
.qm-body .form-input {
    border: 1.5px solid #D4E8DF; border-radius: 10px;
    padding: 11px 14px; font-size: .87rem;
    background: #fff; color: #111D16;
    transition: all .2s ease;
}
.qm-body .form-input:focus {
    border-color: #0A5C45;
    box-shadow: 0 0 0 4px rgba(10,92,69,.1);
    background: #fff; outline: none;
}
.qm-body .form-input.input-error { border-color: #D32F2F !important; background: #fff8f8; }
.qm-body .input-group-text {
    border: 1.5px solid #D4E8DF; border-right: none;
    background: #F4FAF7; color: #6B7F74;
    font-size: .84rem; font-weight: 700;
    border-radius: 10px 0 0 10px;
}
.qm-body .input-group .form-input { border-left: none; border-radius: 0 10px 10px 0; }
.qm-body textarea.form-input { resize: vertical; min-height: 80px; }

.qm-tooltip { cursor: help; color: #6B7F74; font-size: .84rem; }
.qm-tooltip:hover { color: #0A5C45; }

/* Divider */
.qm-divider { height: 1px; background: #D4E8DF; margin: 4px 0 16px; }

/* Alerts */
.qm-alert {
    border-radius: 10px; padding: 12px 16px;
    font-size: .86rem; font-weight: 600;
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 18px;
}
.qm-alert-success { background:#E8F5E9; color:#1B5E20; border:1.5px solid #A5D6A7; }
.qm-alert-error   { background:#FFEBEE; color:#B71C1C; border:1.5px solid #FFCDD2; }

/* Submit button — gold gradient, dark text */
.qm-body .btn-primary-hero {
    background: linear-gradient(135deg, #C9A84C, #F5C842) !important;
    color: #1A2E24 !important;
    font-size: .92rem; font-weight: 800;
    padding: 14px 28px; border-radius: 12px;
    justify-content: center; letter-spacing: .3px;
    border: none !important;
    box-shadow: 0 6px 20px rgba(201,168,76,.35) !important;
}
.qm-body .btn-primary-hero:hover {
    background: linear-gradient(135deg, #b8932a, #e6b830) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 28px rgba(201,168,76,.45) !important;
    color: #1A2E24 !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .pricing-grid { grid-template-columns: repeat(3, 1fr); }
    .pc-popular { transform: none; }
    .pc-popular:hover { transform: translateY(-6px); }
}
@media (max-width: 768px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-hero { padding: 110px 0 70px; min-height: auto; }
    .qm-body { padding: 20px; }
    .qm-header-inner { padding: 18px 20px; }
}
@media (max-width: 576px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .ph-title { font-size: 2rem; }
}
