/* Modern services page components - card grid, sticky sub-nav, hero image */
.svc-subnav { position: sticky; top: 0; z-index: 40; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.svc-subnav .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 14px 15px; }
.svc-subnav a { font-size: 14px; font-weight: 600; padding: 8px 18px; border-radius: 30px; background: #f3f3f3; color: #222; text-decoration: none; transition: all .2s ease; }
.svc-subnav a:hover, .svc-subnav a.active { background: var(--color-primary, #d6001c); color: #fff; }
.svc-hero-image { width: 100%; height: 420px; object-fit: cover; border-radius: 12px; }
.svc-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.08); transition: transform .25s ease, box-shadow .25s ease; height: 100%; }
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(0,0,0,.14); }
.svc-card img { width: 100%; height: 210px; object-fit: cover; display: block; }
.svc-card .svc-card-body { padding: 22px 24px 26px; }
.svc-card h5 { margin-bottom: 6px; font-weight: 700; }
.svc-card p { font-size: 14.5px; line-height: 1.6; color: #666; margin-bottom: 0; }
.svc-card-price { display: inline-block; font-size: 17px; font-weight: 800; color: var(--color-primary, #d6001c); margin-bottom: 12px; }
.svc-card-price small { font-size: 12px; font-weight: 600; color: #999; margin-left: 2px; }
.svc-section-intro { max-width: 780px; margin: 0 auto 45px; text-align: center; }
@media (max-width: 575px) {
    .svc-hero-image { height: 220px; }
    .svc-subnav a { font-size: 13px; padding: 7px 14px; }
}

/* Icon feature cards (e.g. "Why AI Animation") */
.svc-icon-card { background: #fff; border-radius: 12px; padding: 32px 26px; text-align: center; height: 100%; box-shadow: 0 6px 24px rgba(0,0,0,.08); transition: transform .25s ease, box-shadow .25s ease; }
.svc-icon-card:hover { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(0,0,0,.14); }
.svc-icon-card .svc-icon-wrap { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--color-primary, #d6001c); display: flex; align-items: center; justify-content: center; }
.svc-icon-card .svc-icon-wrap i { font-size: 28px; color: #fff; }
.svc-icon-card h5 { font-weight: 700; margin-bottom: 10px; }
.svc-icon-card p { font-size: 14.5px; line-height: 1.6; color: #666; margin-bottom: 0; }

/* Video portfolio cards */
.svc-video-card { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.1); height: calc(100% - 24px); margin: 0 0 24px; }
.svc-video-card .svc-video-thumb { position: relative; }
.svc-video-card img { width: 100%; height: 320px; object-fit: cover; display: block; }
.svc-video-card .svc-video-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.65) 100%); }
.svc-play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 70px; height: 70px; border-radius: 50%; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; z-index: 2; transition: all .25s ease; }
.svc-play-btn i { font-size: 26px; color: var(--color-primary, #d6001c); margin-left: 4px; }
.svc-video-card:hover .svc-play-btn { background: var(--color-primary, #d6001c); transform: translate(-50%, -50%) scale(1.1); }
.svc-video-card:hover .svc-play-btn i { color: #fff; }
.svc-video-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 22px; z-index: 2; color: #fff; }
.svc-video-caption h5 { color: #fff; font-weight: 700; margin-bottom: 4px; }
.svc-video-caption p { color: rgba(255,255,255,.85); font-size: 13.5px; margin-bottom: 0; }

/* Pricing cards — default modern style, shared by every pricing card on the site */
.svc-pricing-wrap { position: relative; height: 100%; display: flex; }
.svc-pricing-wrap .pricing-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0,0,0,.07);
    padding: 32px 26px;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}
.svc-pricing-wrap .pricing-box:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.svc-pricing-wrap .pricing-header { margin-bottom: 6px; }
.svc-pricing-wrap .pricing-header .pricing-title {
    font-size: 18px !important;
    font-weight: 700;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: 0;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.svc-pricing-wrap .pricing-header .pricing-title:before { display: none; }
.svc-pricing-wrap .pricing-header p { font-size: 12.5px; color: #999; margin-bottom: 0; }
.svc-pricing-wrap .pricing-photo {
    flex: 0 0 25%;
    height: 25%;
    max-height: 150px;
    min-height: 100px;
    margin: -32px -26px 18px;
    width: calc(100% + 52px);
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}
.svc-pricing-wrap .pricing-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-pricing-wrap .package-price {
    font-size: 30px !important;
    font-weight: 800;
    color: var(--color-primary, #d6001c) !important;
    padding-top: 10px;
    padding-bottom: 16px;
}
.svc-pricing-wrap .package-price > sup {
    font-size: 1em !important;
    font-weight: 800;
    position: static;
    top: auto;
    vertical-align: baseline;
}
.svc-pricing-wrap .package-price > sub { font-size: 13px; }
.svc-pricing-wrap .pricing-content { flex: 1 1 auto; font-size: 13px; padding-top: 4px; }
.svc-pricing-wrap .pricing-content > ul { font-size: 13px; }
.svc-pricing-wrap .pricing-content > ul > li { font-size: 13px; line-height: 1.5; padding-top: 9px; padding-bottom: 9px; color: #777; }
.svc-pricing-wrap.svc-popular .pricing-box { border: 2px solid var(--color-primary, #d6001c); transform: scale(1.03); }
.svc-popular-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--color-primary, #d6001c); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 6px 18px; border-radius: 30px; z-index: 3; white-space: nowrap; }

/* Extra breathing room above/below each pricing card grid within a section, and between wrapped rows of cards */
.svc-pricing-grid { margin-top: 45px; margin-bottom: 20px; row-gap: 2.5rem; }

@media (max-width: 575px) {
    .svc-pricing-wrap .pricing-box { padding: 26px 20px; }
    .svc-pricing-wrap .package-price { font-size: 26px !important; }
}

/* Add-on table */
.svc-addon-table { width: 100%; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.08); border-collapse: collapse; }
.svc-addon-table th { background: var(--color-primary, #d6001c); color: #fff; text-align: left; padding: 14px 20px; font-size: 14px; }
.svc-addon-table td { padding: 14px 20px; border-bottom: 1px solid #eee; font-size: 14.5px; color: #444; }
.svc-addon-table tr:last-child td { border-bottom: none; }
.svc-addon-table td:last-child { font-weight: 700; color: var(--color-primary, #d6001c); text-align: right; }

/* Process steps */
.svc-process-step { text-align: center; padding: 0 10px; }
.svc-process-step .svc-step-num { width: 54px; height: 54px; border-radius: 50%; background: var(--color-primary, #d6001c); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 22px; }
.svc-process-step h5 { font-weight: 700; margin-bottom: 8px; }
.svc-process-step p { font-size: 14px; color: #666; margin-bottom: 0; }

/* Project estimator */
.est-section {
    margin-bottom: 34px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,.07);
    overflow: hidden;
}
.est-section-title {
    font-weight: 700;
    font-size: 17px;
    margin: 0;
    padding: 18px 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary, #d6001c), #a80016);
}
.est-section-note { margin: 0; padding: 10px 24px; font-size: 12.5px; color: #888; background: #fafafa; border-bottom: 1px solid #eee; }
.est-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.est-table th {
    background: #fafafa;
    color: #888;
    text-align: left;
    padding: 12px 20px;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-bottom: 2px solid #eee;
}
.est-table th:first-child, .est-table td:first-child { padding-left: 24px; }
.est-table th:last-child, .est-table td:last-child { padding-right: 24px; text-align: right; }
.est-table td { padding: 16px 20px; border-bottom: 1px solid #f0f0f0; font-size: 14.5px; color: #333; vertical-align: middle; }
.est-table tbody tr:nth-child(even) { background: #fcfcfc; }
.est-table tr:last-child td { border-bottom: none; }
.est-table tr.est-selected { background: rgba(214,0,28,.06) !important; }
.est-table tr:hover td { background: rgba(214,0,28,.03); }
.est-check { width: 44px; }
.est-check input[type="checkbox"] { width: 19px; height: 19px; cursor: pointer; accent-color: var(--color-primary, #d6001c); }
.est-service label { cursor: pointer; font-weight: 600; margin-bottom: 0; }
.est-sublabel {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #999;
    background: #f2f2f2;
    padding: 2px 9px;
    border-radius: 20px;
    margin-top: 5px;
}
.est-price { font-weight: 700; color: var(--color-primary, #d6001c); white-space: nowrap; }
.est-qtycell { text-align: center; }
.est-qty {
    width: 66px;
    padding: 8px 10px;
    border: 1.5px solid #e2e2e2;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
    background: #fff;
}
.est-qty:focus { border-color: var(--color-primary, #d6001c); outline: none; }
.est-qty:disabled { background: #f5f5f5; color: #ccc; border-color: #eee; }
.est-qty-na { font-size: 12.5px; }
.est-linetotal {
    font-weight: 800;
    white-space: nowrap;
    min-width: 70px;
    display: inline-block;
}

.est-summary { background: #fff; border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,.08); padding: 28px 30px; }
.est-summary h4 { font-weight: 700; margin-bottom: 18px; }
.est-summary .est-grandtotal {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: 32px;
    font-weight: 800;
    color: var(--color-primary, #d6001c);
    padding: 16px 18px;
    background: rgba(214,0,28,.06);
    border-radius: 10px;
    margin-top: 14px;
}
.est-summary .est-grandtotal small { font-size: 14px; font-weight: 700; color: #666; }
.est-summary .est-empty { color: #999; font-size: 14px; text-align: center; padding: 20px 0; }
.est-summary .est-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: #555; padding: 9px 0; border-bottom: 1px dashed #eee; }
.est-summary .est-line:last-child { border-bottom: none; }
.est-summary .est-line span:first-child { flex: 1; }
.est-summary .est-line span:last-child { font-weight: 700; color: #333; white-space: nowrap; }

.est-contact-form { background: #fff; border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,.08); padding: 30px; margin-top: 30px; }
.est-contact-form label { font-weight: 600; font-size: 14px; margin-bottom: 6px; display: block; }
.est-contact-form input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e2e2e2;
    border-radius: 8px;
    font-size: 14.5px;
    margin-bottom: 18px;
    background: #fafafa;
    transition: border-color .2s ease, background .2s ease;
}
.est-contact-form input:focus { border-color: var(--color-primary, #d6001c); background: #fff; outline: none; }
.est-contact-form input:invalid.est-touched { border-color: #d6001c; background: #fdecec; }
.est-submit-note { font-size: 13px; color: #888; margin-top: 10px; text-align: center; }
.est-msg { margin-top: 16px; padding: 14px 18px; border-radius: 8px; font-size: 14px; }
.est-msg.ok { background: #e8f7ec; color: #1a7a35; }
.est-msg.err { background: #fdecec; color: #b3261e; }

@media (max-width: 991px) {
    .est-summary { margin-top: 30px; }
    .est-table th, .est-table td { padding: 10px 8px; font-size: 13px; }
    .est-table th:first-child, .est-table td:first-child { padding-left: 12px; }
    .est-table th:last-child, .est-table td:last-child { padding-right: 12px; }
    .est-qty { width: 52px; padding: 6px; }
}

/* FAQ */
.svc-faq-item { background: #fff; border-radius: 12px; padding: 26px 28px; margin-bottom: 16px; box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.svc-faq-item h5 { font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.svc-faq-item h5 i { color: var(--color-primary, #d6001c); }
.svc-faq-item p { font-size: 14.5px; color: #666; line-height: 1.6; margin-bottom: 0; }

@media (max-width: 767px) {
    .svc-video-card img { height: 240px; }
    .svc-pricing-wrap.svc-popular .pricing-box { transform: none; }
}

/* AI Animation portfolio grid: force a consistent 16:9 thumbnail box so a portrait
   source image (e.g. My Bestie, shot 9:16) can't stretch its card taller than the
   row and overlap the footer below */
.aianimation .portfolio_animation_wrap { aspect-ratio: 16 / 9; overflow: hidden; }
.aianimation .portfolio_animation_wrap img { width: 100%; height: 100%; object-fit: cover; }

/* Contact page */
.svc-contact-card { background: #fff; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.08); padding: 40px; height: 100%; }
.svc-contact-info-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 26px; }
.svc-contact-info-item:last-child { margin-bottom: 0; }
.svc-contact-info-item .svc-contact-icon { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; background: rgba(214,0,28,.1); display: flex; align-items: center; justify-content: center; }
.svc-contact-icon i { font-size: 22px; color: var(--color-primary, #d6001c); }
.svc-contact-info-item h5 { font-weight: 700; margin-bottom: 4px; }
.svc-contact-info-item p, .svc-contact-info-item a { font-size: 14.5px; color: #666; margin-bottom: 0; text-decoration: none; }
.svc-contact-info-item a:hover { color: var(--color-primary, #d6001c); }
.svc-contact-social { display: flex; gap: 10px; margin-top: 30px; }
.svc-contact-social a { width: 42px; height: 42px; border-radius: 50%; background: #f3f3f3; display: flex; align-items: center; justify-content: center; color: #444; transition: all .2s ease; }
.svc-contact-social a:hover { background: var(--color-primary, #d6001c); color: #fff; }

.svc-form-card { background: #fff; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.08); padding: 40px; }
.svc-form-card .form-group { margin-bottom: 22px; }
.svc-form-card label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; color: #333; }
.svc-form-card .form-controller { background: #f7f7f9; color: #222; border: 1px solid #ececec; height: 52px; box-shadow: none; }
.svc-form-card textarea.form-controller { height: auto; padding-top: 14px; }
.svc-form-card .form-controller:focus { border-color: var(--color-primary, #d6001c); background: #fff; }

@media (max-width: 575px) {
    .svc-contact-card, .svc-form-card { padding: 28px 22px; }
}
