/* =========================================================
   ONE DAY COURT MARRIAGE
   COURT MARRIAGE SERVICE PAGE
   ========================================================= */


/* =========================================================
   BASIC PAGE SETTINGS
   ========================================================= */

.court-marriage-page {
    background: #ffffff;
    color: #333333;
    overflow: hidden;
}

.court-marriage-page * {
    box-sizing: border-box;
}

.court-marriage-page p {
    line-height: 1.85;
}

/* Force proper block-level stacking for all headings on this page.
   Prevents headings from sitting beside preceding inline labels
   (fixes the "01" / "Court Marriage" / heading overlap issue). */
.court-marriage-page h1,
.court-marriage-page h2,
.court-marriage-page h3,
.court-marriage-page h4 {
    display: block;
    clear: both;
    width: 100%;
}

.cms-section {
    position: relative;
    padding: 100px 0;
}

.cms-red-title {
    display: inline-block;
    color: #b00000;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.cms-red-line {
    width: 55px;
    height: 3px;
    background: #b00000;
    margin: 20px 0 25px;
}

.cms-heading-line {
    width: 65px;
    height: 3px;
    background: #b00000;
    margin: 18px auto 25px;
}

.cms-heading-center {
    text-align: center;
    max-width: 1050px;
    margin: 0 auto 55px;
}

.cms-heading-center h2 {
    margin-bottom: 0;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 700;
    color: #111111;
}

.cms-heading-description {
    max-width: 1050px;
    margin: 0 auto;
    color: #555555;
    font-size: 16px;
}


/* =========================================================
   HERO
   ========================================================= */

.cms-hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    padding: 90px 0 80px;
    background: #ffffff;
    overflow: hidden;
}

.cms-hero-shape {
    position: absolute;
    top: -120px;
    right: 38%;
    width: 90px;
    height: 900px;
    background: #b00000;
    transform: rotate(12deg);
    opacity: 0.95;
}

.cms-hero-content {
    position: relative;
    z-index: 2;
    padding-right: 45px;
}

.cms-label {
    position: relative;
    display: inline-block;
    padding: 9px 32px 9px 18px;
    background: #b00000;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 22px;
}

.cms-label:after {
    content: "";
    position: absolute;
    right: -20px;
    top: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 20px solid #b00000;
}

.cms-hero h1 {
    font-size: 64px;
    line-height: 1.03;
    font-weight: 700;
    color: #111111;
    margin: 0;
    max-width: 650px;
}

.cms-hero-line {
    width: 70px;
    height: 4px;
    background: #b00000;
    margin: 25px 0 20px;
}

.cms-hero h2 {
    font-size: 21px;
    line-height: 1.5;
    font-weight: 400;
    color: #555555;
    margin: 0 0 30px;
}

.cms-main-btn {
    display: inline-block;
    background: #b00000;
    color: #ffffff !important;
    padding: 16px 27px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(176, 0, 0, 0.18);
}

.cms-main-btn:hover {
    background: #850000;
    transform: translateY(-2px);
    color: #ffffff !important;
}

.cms-trust-row {
    display: flex;
    max-width: 650px;
    margin-top: 45px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
}

.cms-trust-item {
    flex: 1;
    padding: 20px 10px;
    text-align: center;
    border-right: 1px solid #e5e5e5;
}

.cms-trust-item:last-child {
    border-right: 0;
}

.cms-trust-item .cms-icon {
    display: block;
    margin-bottom: 8px;
    color: #b00000;
    font-size: 22px;
}

.cms-trust-item strong,
.cms-trust-item small {
    display: block;
}

.cms-trust-item strong {
    color: #222222;
    font-size: 12px;
}

.cms-trust-item small {
    color: #777777;
    font-size: 11px;
}

.cms-hero-image {
    position: relative;
    z-index: 2;
    padding-left: 25px;
}

.cms-image-frame {
    position: relative;
    padding: 14px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.cms-image-frame:before {
    content: "";
    position: absolute;
    left: -12px;
    top: 20px;
    width: 12px;
    height: calc(100% - 40px);
    background: #b00000;
}

.cms-image-frame img {
    width: 100%;
    height: 470px;
    object-fit: cover;
    display: block;
}

.cms-hero-badge {
    position: absolute;
    left: -20px;
    bottom: -20px;
    z-index: 3;
    background: #ffffff;
    border-left: 6px solid #b00000;
    padding: 16px 26px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    text-align: center;
    min-width: 150px;
}

.cms-hero-badge strong {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: #b00000;
    line-height: 1.2;
}

.cms-hero-badge span {
    display: block;
    font-size: 12px;
    color: #555555;
    font-weight: 600;
}


/* =========================================================
   ABOUT SECTION
   ========================================================= */

.cms-about {
    border-top: 1px solid #eeeeee;
    background: #ffffff;
}

.cms-section-number {
    position: absolute;
    left: 40px;
    top: 20px;
    font-size: 80px;
    font-weight: 800;
    color: #f0f0f0;
    line-height: 1;
    z-index: 0;
    pointer-events: none;
}

.cms-about .row {
    position: relative;
    z-index: 1;
}

.cms-content-block {
    position: relative;
    padding-right: 45px;
    padding-top: 35px;
}

.cms-content-block h2 {
    display: block;
    clear: both;
    font-size: 44px;
    line-height: 1.15;
    color: #111111;
    font-weight: 700;
    margin: 0;
}

.cms-content-block p {
    color: #555555;
    font-size: 16px;
    margin-bottom: 22px;
}

.cms-about-image {
    position: relative;
    padding: 25px;
}

.cms-about-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    position: relative;
    z-index: 2;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.cms-image-corner {
    position: absolute;
    right: 0;
    top: 0;
    width: 85%;
    height: 85%;
    border: 2px solid #b00000;
    border-radius: 0 25px 0 0;
}

.cms-image-dots {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70px;
    height: 70px;
    background-image: radial-gradient(#b00000 2px, transparent 2px);
    background-size: 13px 13px;
}


/* =========================================================
   BENEFITS
   ========================================================= */

.cms-benefits {
    background: #fafafa;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
}

.cms-benefit-row {
    margin-top: 20px;
}

.cms-benefit-card {
    position: relative;
    height: 100%;
    min-height: 300px;
    padding: 35px 28px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.cms-benefit-card:hover {
    transform: translateY(-8px);
    border-color: #b00000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.cms-card-number {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #b00000;
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

.cms-card-icon {
    margin-top: 35px;
    margin-bottom: 22px;
    color: #b00000;
    font-size: 35px;
}

.cms-benefit-card p {
    margin: 0;
    color: #555555;
    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   DOCUMENTS
   ========================================================= */

.cms-documents {
    background: #ffffff;
}

.cms-document-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}

.cms-document-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cms-document-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 12px 0;
}

.cms-document-item > span {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #b00000;
    border-radius: 50%;
    color: #b00000;
    font-size: 10px;
    margin-top: 2px;
}

.cms-document-item p {
    margin: 0;
    color: #555555;
    font-size: 15px;
    line-height: 1.7;
}

.cms-document-image {
    position: relative;
    padding: 20px;
}

.cms-document-image img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 400px;
    object-fit: cover;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.14);
}

.cms-document-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 90%;
    height: 90%;
    background: #b00000;
}


/* =========================================================
   WHY CHOOSE US
   ========================================================= */

.cms-why-us {
    position: relative;
    background: #111111;
    color: #ffffff;
    overflow: hidden;
}

.cms-why-glow {
    position: absolute;
    right: -180px;
    top: -180px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(176, 0, 0, 0.35) 0%, rgba(176, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cms-why-pattern {
    position: absolute;
    left: -100px;
    bottom: -150px;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.cms-why-pattern:before,
.cms-why-pattern:after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.cms-why-pattern:before {
    inset: 50px;
}

.cms-why-pattern:after {
    inset: 100px;
}

.cms-why-content {
    position: relative;
    z-index: 2;
    padding-right: 45px;
}

.cms-why-content h2 {
    color: #ffffff;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 700;
    margin: 0;
}

.cms-why-content p {
    color: #d0d0d0;
    font-size: 15px;
}

.cms-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.cms-why-item {
    min-height: 100px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.3s ease;
}

.cms-why-item:hover {
    background: rgba(176, 0, 0, 0.12);
}

.cms-why-item:hover .cms-why-icon {
    transform: scale(1.1);
}

.cms-why-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.cms-why-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #b00000;
    border-radius: 50%;
    color: #ffffff;
    font-size: 17px;
    transition: transform 0.3s ease;
}

.cms-why-item > span:last-child {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   APPROACH / PROCESS
   ========================================================= */

.cms-approach {
    background: #ffffff;
}

.cms-process {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 75px;
}

.cms-process-line {
    position: absolute;
    top: 43px;
    left: 7%;
    right: 7%;
    height: 2px;
    background: #b00000;
}

.cms-process-item {
    position: relative;
    text-align: center;
    z-index: 2;
}

.cms-process-number {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    color: #b00000;
    font-size: 12px;
    font-weight: 700;
}

.cms-process-icon {
    width: 86px;
    height: 86px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #b00000;
    border-radius: 50%;
    background: #ffffff;
    color: #b00000;
    font-size: 25px;
    transition: all 0.3s ease;
}

.cms-process-item:hover .cms-process-icon {
    background: #b00000;
    color: #ffffff;
    transform: translateY(-5px);
}

.cms-process-item h3 {
    max-width: 190px;
    margin: 0 auto;
    color: #222222;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 600;
}


/* =========================================================
   FINAL CTA
   ========================================================= */

.cms-final-cta {
    background: #b00000;
    padding: 55px 0;
}

.cms-final-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cms-final-cta .cms-red-title {
    color: #ffffff;
}

.cms-final-cta h2 {
    color: #ffffff;
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}

.cms-btn-white {
    background: #ffffff;
    color: #b00000 !important;
    box-shadow: none;
}

.cms-btn-white:hover {
    background: #f2f2f2;
    color: #850000 !important;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 991px) {

    .cms-section {
        padding: 75px 0;
    }

    .cms-hero {
        min-height: auto;
        padding: 75px 0;
    }

    .cms-hero-shape {
        display: none;
    }

    .cms-hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }

    .cms-hero h1 {
        font-size: 52px;
    }

    .cms-hero-image {
        padding-left: 0;
        margin-bottom: 10px;
    }

    .cms-hero-badge {
        left: 15px;
        bottom: -15px;
        padding: 12px 18px;
        min-width: 130px;
    }

    .cms-content-block {
        padding-right: 0;
        padding-top: 0;
        margin-bottom: 45px;
    }

    .cms-section-number {
        display: none;
    }

    .cms-document-grid {
        margin-bottom: 40px;
    }

    .cms-why-content {
        padding-right: 0;
        margin-bottom: 45px;
    }

    .cms-process {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 70px;
    }

    .cms-process-line {
        display: none;
    }

    .cms-final-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .cms-section {
        padding: 60px 0;
    }

    .cms-hero {
        padding: 55px 0;
    }

    .cms-hero h1 {
        font-size: 40px;
    }

    .cms-hero h2 {
        font-size: 18px;
    }

    .cms-main-btn {
        font-size: 11px;
        padding: 14px 18px;
        letter-spacing: 1px;
    }

    .cms-trust-row {
        flex-wrap: wrap;
    }

    .cms-trust-item {
        flex: 0 0 50%;
    }

    .cms-trust-item:nth-child(2) {
        border-right: 0;
    }

    .cms-trust-item:nth-child(-n+2) {
        border-bottom: 1px solid #e5e5e5;
    }

    .cms-heading-center h2 {
        font-size: 32px;
    }

    .cms-content-block h2 {
        font-size: 34px;
    }

    .cms-about-image {
        padding: 15px;
    }

    .cms-about-image img {
        height: 330px;
    }

    .cms-benefit-card {
        min-height: auto;
        margin-bottom: 20px;
    }

    .cms-document-grid {
        display: block;
    }

    .cms-document-column {
        margin-bottom: 5px;
    }

    .cms-document-image img {
        height: 320px;
    }

    .cms-why-content h2 {
        font-size: 34px;
    }

    .cms-why-grid {
        grid-template-columns: 1fr;
        border-left: 0;
    }

    .cms-why-item {
        border-right: 0 !important;
    }

    .cms-process {
        grid-template-columns: 1fr;
        gap: 50px;
        margin-top: 50px;
    }

    .cms-process-number {
        position: static;
        transform: none;
        margin-bottom: 8px;
    }

    .cms-process-icon {
        width: 75px;
        height: 75px;
        margin-bottom: 15px;
    }

    .cms-final-cta h2 {
        font-size: 27px;
    }

    .cms-final-cta-inner {
        gap: 25px;
    }

    .cms-hero-badge {
        min-width: 115px;
        padding: 10px 14px;
    }

    .cms-hero-badge strong {
        font-size: 21px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .cms-hero h1 {
        font-size: 34px;
    }

    .cms-heading-center h2 {
        font-size: 28px;
    }

    .cms-content-block h2 {
        font-size: 30px;
    }

    .cms-why-content h2 {
        font-size: 30px;
    }

    .cms-trust-item {
        padding: 15px 5px;
    }

    .cms-trust-item strong {
        font-size: 11px;
    }

    .cms-document-item p {
        font-size: 14px;
    }
    

}

/* ================================================
   BACK-TO-TOP FIX
   Floating icons (.floating-icons) = bottom:20px, right:20px
   2 buttons × 50px + gap 15px + bottom 20px = ~135px total height
   Back-to-top was overlapping WhatsApp icon — moved above them
   ================================================ */

#back-to-top {
    right: 20px !important;
    width: 50px !important;
    height: 50px !important;
    background-color: #970606 !important;
    border-radius: 50% !important;
    line-height: 50px !important;
    padding-top: 0 !important;
    box-shadow: 0 4px 12px rgba(151,6,6,0.4) !important;
    z-index: 1030 !important;
}

#back-to-top.show {
    bottom: 150px !important; /* above floating icons (135px) */
    opacity: 1 !important;
}

#back-to-top.hide {
    bottom: -60px !important;
    opacity: 0 !important;
}

#back-to-top:before {
    font-family: "FontAwesome" !important;
    font-size: 20px !important;
    content: "\f106" !important;
    color: #ffffff !important;
    line-height: 50px !important;
    display: block !important;
    text-align: center !important;
    position: static !important;
}

#back-to-top:hover {
    background-color: #7a0505 !important;
    transform: translateY(-3px);
    transition: all 0.2s ease;
}


/* ================================================
   FLOATING BUTTON FIXES
   cursor: pointer missing from style.css fix
   + improved hover effect
   ================================================ */
.floating-icons a,
.floating-icons a.call {
    cursor: pointer !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

.floating-icons a:hover {
    transform: scale(1.12) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important;
    cursor: pointer !important;
}

.floating-icons a.call:hover {
    background-color: #7a0505 !important;
}

.floating-icons a.whatsapp:hover,
.floating-icons a:not(.call):hover {
    background-color: #1da851 !important;
}
