@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

body {
    font-family: "Roboto", sans-serif;
    margin: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--main-colour) !important;
    font-family: 'Red Hat Text', sans-serif;
    line-height: 1.2em;
    margin-bottom: .7em;
    font-weight: 700;
}

h2 {
    font-size: 41px;
}

h3 {
    font-size: 35px;
}

p a {
    color: var(--main-colour);
    font-weight: 600;
    cursor: pointer;
}

p a:hover {
    color: var(--text-hover-colour);
}

.next-btn,
.back-btn {
    cursor: pointer;
}

/* -------------------------------------- */
/* ----- Header & Navigation Styles ----- */
/* -------------------------------------- */

header {
    margin: 20px 0; 
    overflow: visible; 
}

.header-geometry {
    z-index: -1;
    position: absolute;
    top: 0;
    right: 0;
}

.header-content {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    overflow: visible;
}

.logged-out-nav-links {
    display: flex;
    gap: 4rem;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 500;
    color: white;
    margin-left: auto;
}

.logged-out-nav-links a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.logged-out-nav-links a:hover {
    color: var(--text-hover-colour);
}


.logo-container {
    position: relative;
    padding: 0;
    margin: 0;
    text-align: left;
}

.desktop-logo {
    max-height: 70px;
    width: auto;
}

.top-right-nav,
.mobile-top-nav,
.desktop-nav { 
    display: none !important;
}

/* ------------------------------------- */
/* --- Menu Button --- */
/* ------------------------------------- */

.menu-button {
    background-color: var(--menu-button-color); 
    color: white !important;
    font-weight: 500;
    padding: 10px 30px;
    border-radius: 35px; 
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 4px solid var(--border-colour); 
    box-shadow: 0 4px 10px var(--shade-black-20); 
    display: inline-flex; 
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    display: flex !important; 
    margin-left: auto;
}

.menu-button:hover {
    background-color: var(--button-hover-colour);
}

.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 20px; 
    height: 18px; 
}

.menu-icon div {
    width: 100%;
    height: 2px; 
    background-color: white; 
    border-radius: 1px;
}

.menu-button:hover .menu-icon div {
    background-color: white; 
}

/* -------------------------------------- */
/* ------ Side Navigation (Drawer) ------ */
/* -------------------------------------- */

.side-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px; 
    height: 100%;
    background-color: white; 
    box-shadow: -2px 0 5px var(--shade-black-50);
    transform: translateX(100%); 
    transition: transform 0.3s ease-in-out;
    z-index: 100;
    padding-top: 0;
    overflow-y: auto;
}

.side-nav.open {
    transform: translateX(0); 
}

.side-nav-header {
    display: flex;
    justify-content: flex-end; 
    padding: 15px 20px;
    border-bottom: 1px solid var(--very-light-accent);
}

.close-menu-btn {
    background: none;
    border: none;
    font-size: 30px;
    font-weight: 500;
    color: var(--text-colour);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.close-menu-btn:hover {
    color: var(--text-hover-colour); 
}

.side-nav-content {
    padding: 20px;
}

.side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-nav > ul > li {
    margin-bottom: 5px;
}

.side-nav a {
    text-decoration: none;
    color: var(--text-colour) !important;
    padding: 10px 0;
    display: block;
    font-size: 1.25rem;
    font-weight: 500;
}

.side-nav a:hover {
    color: var(--text-hover-colour) !important;
}

.side-nav .sub-menu {
    padding-left: 20px;
    margin-top: 5px;
    border-left: 2px solid var(--very-light-accent);
    max-height: 0; 
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.side-nav .sub-item {
    padding-left: 20px;
    margin-top: 5px;
    border-left: 2px solid var(--very-light-accent);
}

.toggle-icon {
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--text-colour);
}

.side-nav .sub-menu li, .side-nav .sub-item li {
    margin: 0;
}

.side-nav .sub-menu a, .side-nav .sub-item a {
    font-size: 1rem;
    font-weight: 400;
    padding: 8px 0;
}

/* Add visual separator between "View Another Entry" items */
.side-nav .sub-menu.entries li {
    padding: 8px 0; /* Add consistent padding to all items */
}

.side-nav .sub-menu.entries li:not(:last-child) {
    border-bottom: 1px solid var(--very-light-accent);
    padding-bottom: 8px;
    margin-bottom: 8px;
}

/* Improve text wrapping for long charity names */
.side-nav .sub-menu.entries li a,
.side-nav .sub-menu.entries li span {
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
    white-space: normal; /* Allow multi-line text */
}

/* Style the current entry indicator more cleanly */
.side-nav .sub-menu.entries li span {
    font-weight: 700;
    color: var(--text-colour);
    cursor: default;
}

/* Badge style for current indicator */
.side-nav .sub-menu.entries .current-indicator {
    display: inline-block;
    background-color: var(--main-colour);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-style: normal;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--shade-black-50);
    z-index: 99;
    display: none;
}

.menu-overlay.active {
    display: block;
}

.side-nav-content .link-disabled-unauthenticated,
.side-nav-content .link-disabled-unauthenticated a {
    color: var(--link-disabled-grey) !important;
    cursor: pointer; 
    opacity: 0.7; 
}

.is-invalid {
    border-color: #dc3545 !important;
    background-image: none !important;
}

/* -------------------------------------- */
/* --- Desktop & Mobile Global Styles --- */
/* -------------------------------------- */

.mobile-title {
    display: none;
}

.mobile-title h1 {
    margin-top: 0;
}

.mobile-title > h3 {
    color: white !important;
    padding: 0;
    font-size: 1.6rem;
}

.mobile-logo {
    width: auto;
}

.mobile-logo-gc{
    max-height: 50px;
}

.image-container {
    width: 100%;
    height: 460px;
    overflow: hidden; 
    border-radius: 40px;
    position: relative;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05) translateX(2%) translateY(2%);
}

/* ------------------------------------- */
/* --- Button Styling --- */
/* ------------------------------------- */

.cta-button {
    background: var(--button-colour) !important; 
    color: white !important; 
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    border-radius: 32px;
    padding: 13px 18px;
    text-decoration: none;
    width: 100%;
    max-width: 375px;
    
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-cta-button {
    background: var(--button-colour) !important; 
    border-radius: 32px;
    font-weight: bold;
}

.cta-button:hover,
.gc-btn2:hover,
.sm-cta-button:hover {
    color: var(--text-hover-colour) !important; 
}

.cta-button:hover::after {
    transform: rotate(180deg);
    margin-left: 4px;
}

.cta-button.secondary {
    background: #ffffff !important;
    color: var(--main-colour) !important;
    border: 2.5px solid var(--main-colour);
}

.cta-button.secondary:hover {
    color: var(--border-colour) !important;
}

.cta-button-alt {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    align-self: center;
    font-size: 20px;
    font-weight: bold;
    border-radius: 32px;
    padding: 3px 22px;
    text-decoration: none;
    cursor: pointer;
    background: white;
    color: var(--button-colour); 
    border: 5px solid var(--button-colour);
    transition: all 0.3s ease;
}

.cta-button-alt:hover {
    background: var(--off-white); 
    color: var(--button-colour);
}

.pinned-cta {
    background: var(--text-hover-colour) !important; 
    position: sticky;
    bottom: 0;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 55px;
}

.pinned-cta a {
    text-decoration: none;
    color: white;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
}

/* ------------------------------------- */
/* --- Hero Section --- */
/* ------------------------------------- */

.hero {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 8px;
}

.alt-hero {
    margin: 24px auto 63px auto;
}

.alt-hero.call-to-action-row {
    margin-bottom: 0; 
}

.alt-hero .hero-content {
    margin-left: 24px;
}

.hero.inverted .hero-content {
    order: 2;
}

.hero.inverted .hero-image {
    order: 1;
}

.hero .hero-content {
    max-width: 460px;
}

.hero .hero-content h1 {
    font-size: 46px;
    font-style: normal;
    font-weight: 700;
    line-height: 50px; 
}

.hero .hero-content p {
    font-size: 18px;
    line-height: 25px; 
}

.hero .cta-button {
    margin: 32px 48px 0 0;
}

.hero .image-container {
    border-radius: 10px;
    box-shadow: 0px 1px 9px 0px var(--shade-black-30);
    overflow: hidden;
    display: flex;
}

.hero .image-container.video video {
    width: 660px;
    height: 100%;
    pointer-events: none;
}

.hero .hero-image {
    max-width: 690px;
}

.hero img {
    width: 100%;
}

.min-hght-80 {
    min-height: 70vh;
}

/* ------------------------------------- */
/* --- Content Rows --- */
/* ------------------------------------- */

.content-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px 20px 48px 20px;
    position: relative;
    overflow: hidden;
}

/* ------------------------------------- */
/* --- Scrolling Cards Row Type --- */
/* ------------------------------------- */

.scrolling-cards-row {
    position: relative;
    overflow: hidden;
}

.scrolling-cards-row.content-row {
    padding: 20px 0 48px 0;
    gap: 0;
}

.scrolling-cards-row::after {
    content: "";
    background: var(--off-white);
    z-index: -1;
    height: 100%;
    width: 100%;
    top: 230px;
    left: 0;
    position: absolute;
}

.scrolling-cards-row .card-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.scrolling-cards-row .card-scroller {
    width: 100%;
    margin-bottom: 52px;
    max-width: 1171px;
    position: relative;
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

.scrolling-cards-row .card-scroller::-webkit-scrollbar {
    display: none;
}

a.card {
    border: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    max-width: 371px;
    height: 600px;
    margin: 0 14px;
    text-decoration: none !important;
}

.card-content {
    box-shadow: 0px 1px 9px 0px var(--shade-black-30);
    height: 585px;
    margin: 0 7px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.card img {
    object-fit: cover;
    object-position: center;
    height: 370px;
}

.card p {
    padding: 20px;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; 
    margin: 0;
}

.scrolling-cards-row .next-btn {
    transform: rotate(180deg);
}

.landing a.card {
    height: 675px
}

.landing .card-content {
    height: 100% !important;
    justify-content: space-between;
}

.landing .card-scroller {
    height: 695px !important; 
}

.landing .scrolling-cards-row::after {
    top: 350px;
}

/* ------------------------------------- */
/* --------- Testimonial Strip --------- */
/* ------------------------------------- */

.testimonial-row {
    background: var(--main-colour) !important; 
    display: flex;
    padding: 80px 20px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.testimonial-row * {
    color: white;
}

.testimonial-row .testimonial-scroller {
    width: 100%;
    padding: 0 40px;
    max-width: 100%;
    position: relative;
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

.testimonial-row .testimonial-scroller::-webkit-scrollbar {
    display: none;
}

.testimonial-row .back-btn {
    transform: rotate(180deg);
}

.testimonial-row .next-btn {
    transform: rotate(0deg);
}

.testimonial {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
}

.testimonial .content {
    max-width: 970px;
}

.testimonial-with-image .content {
    margin-right: 70px;
}

.testimonial-with-image .content,
.testimonial-with-image .content .info {
    justify-content: center;
}

.testimonial-with-image p {
    text-align: left;
}

.testimonial-row p {
    text-align: center;
    font-size: 28px;
    line-height: 38px; 
    margin-top: 0;
}

.testimonial-row .name {
    font-size: 18px;
    line-height: 24px;
    text-align: center;
    margin: 0 18px 0 0;
}

.testimonial .info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.testimonial .mobile-image {
    display: none;
}

.testimonial img {
    width: 143px;
    height: auto;
}

/* ------------------------------------- */
/* --- FAQs Styling --- */
/* ------------------------------------- */

.faqs-section {
    max-width: 770px;
    width: 100%;
    padding: 20px;
    margin: 0 auto;
}   

.faq > a {
    display: block;
    border-bottom: 1px solid var(--very-light-accent);
    position: relative;
}

.faq:last-child > a {
    border-bottom: 0;
}

.faq > a::after {
    content: "";
    background-repeat: no-repeat;
    background-position: center;
    width: 24px;
    height: 24px;
    right: 0;
    top: 0;
    position: absolute;
    transform: rotate(180deg);
}

.faq.expanded > a::after {
    transform: rotate(270deg);
}

.faq h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 24px;
    margin: 20px 0;
    cursor: pointer;
}

.faq p {
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; 
    margin: 8px 0;
}

.faq .expand-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.faq.expanded .expand-content {
    max-height: 500px;
}

/* ------------------------------------- */
/* --- Footer Styling --- */
/* ------------------------------------- */

footer {
    display: block;
}

/* ------------------------------------- */
/* --- Flickity Styling --- */
/* ------------------------------------- */

.card-scroller .flickity-prev-next-button.next {
    right: -44px !important;
}

.card-scroller .flickity-prev-next-button.previous {
    left: -44px !important;
}

.flickity-button:focus,
.flickity-button:focus-visible {
    outline: 0;
}

.flickity-prev-next-button.next,
.flickity-prev-next-button.previous {
    background: none;
}

.flickity-prev-next-button.next:hover,
.flickity-prev-next-button.previous:hover {
    background: none;
}

/* ------------------------------------- */
/* --- Utility/Component Styles --- */
/* ------------------------------------- */

.navbar {
    background-color: var(--main-colour);
}

.entry-actions-buttons {
    display: flex; 
    gap: 10px;
    justify-content: center;
    margin-top: 50px;
    flex-wrap: nowrap;
}
.entry-actions-buttons .cta-button {
    margin: 0;
    padding: 10.5px 15.5px;
}

.entry-actions-buttons .cta-button:hover,
.entry-actions-buttons .cta-button.secondary:hover {
    color: var(--border-colour) !important;
}

.info-row-with-icon {
    display: flex;
    align-items: center; 
    gap: 20px;
    margin-top: 60px;
    padding: 20px;
    padding-bottom: 0;
    border-radius: 8px;
    flex-wrap: nowrap; 
}

.info-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--main-colour); 
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; 
}

.info-question-mark {
    color: white;
    font-size: 35px;
    font-weight: bold;
    line-height: 1;
    margin-top: -3px; 
}

.info-text-container {
    flex-shrink: 1; 
    min-width: 0; 
}

.info-text-container p {
    margin: 0;
    font-size: 1.1rem;
    white-space: normal;
}

/* --- Optimized Modal Styling --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Darker backdrop for focus */
    backdrop-filter: blur(5px);
    z-index: 2000; /* Must be higher than side-nav (100) */
    display: none; /* JS toggles this to 'flex' */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transform: translateY(20px); /* Start lower for slide-up effect */
    transition: transform 0.3s ease;
}

/* Header & Body internal styles */
.modal-header {
    background: var(--off-white);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0 !important;
    font-size: 1.4rem;
}

.modal-body {
    padding: 25px;
    color: #444;
    line-height: 1.6;
}

.intro-text {
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.balance-card {
    background: var(--off-white);
    border-left: 5px solid var(--main-colour);
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.balance-label {
    color: #666;
}

.balance-amount {
    font-weight: 800;
    color: var(--main-colour);
}

.legal-fine-print {
    font-size: 0.85rem;
    color: #777;
    border-top: 2px solid #eee;
    padding-top: 15px;
}

.modal-footer-links {
    margin-top: 15px;
    font-weight: 500;
}

.modal-footer-links a {
    color: var(--main-colour);
    text-decoration: underline;
}

.modal-close {
    font-size: 32px;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
}

.modal-close:hover {
    color: var(--main-colour);
}

.form-check-input {
    border: 1px solid lightgrey; 
    background-color: var(--off-white); 
    width: 1.25em; 
    height: 1.25em;
    cursor: pointer;
    margin-right: 3px;
}

.form-check-label {
    padding-left: 10px;
}

.error-msg {
    padding: 0px !important;
    margin: 0px !important;
}

/* ------------------------------------- */
/* --- Cancellation Blade Specifics --- */
/* ------------------------------------- */

.cancellation-reason-btn {
    transition: all 0.2s ease-in-out;
}

.cancellation-reason-btn:hover,
.cancellation-reason-btn.active-reason {
    background-color: var(--main-colour) !important; 
    border-color: var(--main-colour) !important; 
}

.cancellation-reason-btn:hover span,
.cancellation-reason-btn.active-reason span {
    color: white !important; 
}

.cancellation-reason-btn:not(.dd-reason-btn):hover .icon-circle,
.cancellation-reason-btn:not(.dd-reason-btn).active-reason .icon-circle {
    background-color: white !important; 
    border: 2px solid white !important;
}

.cancellation-reason-btn:not(.dd-reason-btn):hover .icon-circle i,
.cancellation-reason-btn:not(.dd-reason-btn).active-reason .icon-circle i {
    color: var(--main-colour) !important; 
}


.dd-reason-btn:hover,
.dd-reason-btn.active-reason {
    border-color: var(--main-colour) !important;
}

.dd-reason-btn:hover .icon-circle,
.dd-reason-btn.active-reason .icon-circle {
    background-color: white !important;
    border-color: white !important; 
}

.dd-reason-btn:hover .icon-circle img,
.dd-reason-btn.active-reason .icon-circle img {
    filter: none;
}

.dd-icon-circle{
 color: var(--main-colour) !important;
}

.cancellation-action-buttons .btn {
    font-size: 1rem;
}

.form-cta-button {
    background-color: var(--button-colour) !important; 
    color: white !important;
    border-color: var(--button-colour) !important;
    border-radius: 35px;
    font-size: 26px;
    font-weight: bold;
    width: 100%; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-cta-button:hover {
    background-color: var(--button-hover-colour) !important;
    border-color: var(--button-hover-colour) !important;
    color: var(--border-colour) !important; 
}

.postcode-lookup-btn {
    background-color: var(--button-colour) !important; 
    color: white !important;
    border-color: var(--button-colour) !important;
    transition: all 0.2s ease;
}

.postcode-lookup-btn:hover {
    background-color: var(--button-hover-colour) !important;
    border-color: var(--button-hover-colour) !important;
}

/* ---------------------------------------------------------- */
/* --- Profile Page Specific Styles (.profile-page-scope) --- */
/* ---------------------------------------------------------- */

/* Custom styling for the profile tables */
.profile-page-scope .profile-card-container {
    max-width: 1200px;
    margin: 0px auto 50px; 
    padding: 0 15px;
}

/* --- UPDATED: Dynamic Border and Increased Radius for the Card --- */
.profile-page-scope .profile-card-container .card {
    /* Use a dynamic highlight color for the border */
    border: 5px solid var(--text-hover-colour); 
    border-radius: 35px; 
}

/* Account Status Badge Styling */
.account-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
/* ----------------------------------------------------------- */

.profile-page-scope .profile-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.profile-page-scope .profile-info-table th, 
.profile-page-scope .profile-info-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--very-light-accent); /* Use a light dynamic color for lines */
    font-size: 0.95rem;
}

.profile-page-scope .profile-info-table th {
    width: 40%;
    text-align: left;
    font-weight: 500;
    /* Use main text color for column titles */
    color: var(--text-colour); 
}

.profile-page-scope .profile-info-table td {
    width: 60%;
    text-align: right;
    font-weight: 700;
    color: var(--text-colour);
}

.profile-page-scope .action-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.profile-page-scope .action-buttons .btn {
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid var(--text-colour);
    color: var(--text-colour);
    background-color: transparent;
    transition: all 0.2s;
}

.profile-page-scope .action-buttons .btn:hover {
    background-color: var(--very-light-accent);
    color: var(--text-colour);
    border-color: var(--text-colour);
}

/* Style for the instructional text */
.profile-page-scope .instruction-text {
    font-size: 0.85rem;
    margin-top: 15px;
    text-align: right;
    padding-left: 0px;
    padding-right: 0px;
    font-weight: 600;
}

/* Column titles (h3) styling */
.profile-page-scope .profile-col-title {
    color: var(--main-colour) !important;
    border-bottom: 2px solid var(--main-colour);
    padding-bottom: 5px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}
    
/* Responsive layout adjustments */
@media (max-width: 767px) {
    .profile-page-scope .profile-card-container .card-body {
        padding: 20px;
    }
    .profile-page-scope .profile-card-container .row > div:first-child {
        margin-bottom: 40px;
    }
    .profile-page-scope .profile-info-table td {
        text-align: left; /* Align data left on mobile for readability */
    }
    .profile-page-scope .profile-info-table th {
        width: 50%;
    }
    .profile-page-scope .action-buttons {
        justify-content: space-between;
    }
    .profile-page-scope .instruction-text {
        text-align: left;
    }
}

.profile-page-scope .hero.main-hero .hero-content {
    max-width: 100%; /* Ensure content fills the available space */
}

.profile-page-scope .small-cta-btn {
    padding: 10px 20px !important; 
    font-size: 1.25rem !important; 
    max-width: 225px;
    /* Use button-colour for background and font-colour for text (white) */
    background-color: var(--button-colour) !important;
    color: white !important;
    border: none;
    border-radius: 35px;
    transition: background-color 0.2s;
}

.profile-page-scope .small-cta-btn:hover {
    background-color: var(--button-hover-colour) !important;
}

/* Styling copied from edit_profile.blade.php,*/
.edit-profile-page .profile-card-container {
    max-width: 1200px;
    margin: 0px auto 50px; 
    padding: 0 15px;
}
.edit-profile-page .profile-card-container .card {
    /* Mapped hardcoded yellow to dynamic highlight color */
    border: 5px solid var(--text-hover-colour); 
    border-radius: 35px; 
}
.edit-profile-page .profile-col-title {
    /* Mapped hardcoded #FF6600 to dynamic main colour */
    color: var(--main-colour) !important;
    /* Mapped hardcoded #FF6600 to dynamic main colour */
    border-bottom: 2px solid var(--main-colour);
    padding-bottom: 5px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Style for the non-hero size CTA button */
.edit-profile-page .small-cta-btn {
    padding: 10px 20px !important; 
    font-size: 1.25rem !important; 
    width: auto !important; 
    max-width: 225px; 
    font-weight: 600 !important;
    border-radius: 35px !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Style for the Cancel button (Secondary/Outline style) */
.btn-outline-secondary {
    border: 3px solid var(--text-colour);
    color: var(--text-colour);
    background-color: transparent;
}

.edit-profile-page .btn-outline-secondary:hover {
    background-color: var(--very-light-accent);
    color: var(--text-colour);
    border-color: var(--text-colour);
}

/* Style for the Save button (Primary/CTA style) */
.edit-profile-page .small-cta-btn {
    background-color: var(--button-colour) !important;
    color: white !important;
    border: none;
    transition: background-color 0.2s;
}

.edit-profile-page .small-cta-btn:hover {
    background-color: var(--button-hover-colour) !important;
}

/* Display error message under the field */
.edit-profile-page .input-error-message {
    display: block;
    color: var(--main-colour); /* Using main colour for error visibility */
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Styling for the help/instructional box (reused from step 2, updated colors) */
.change_num .help-info-box {
    background-color: var(--off-white); 
    border-left: 5px solid var(--button-colour);
    padding: 15px;
    border-radius: 8px;
    margin-top: 30px;
}

.change_num .help-info-box h5 {
    color: var(--button-colour) !important;
    font-size: 1.1rem;
    margin-top: 0;
}

.change_num .help-info-box p {
    font-size: 0.9rem;
    color: var(--text-colour);
    margin-bottom: 0;
}


/* ----------------------------------- */
/* ---- view results page styles ----- */
/* ----------------------------------- */

.view-results #results-wrapper {
    display: block; /* Original flow */
    height: auto; 
}

.view-results .visible-result {
    display: flex; /* Keeps your flex centering for the card content */
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (max-width: 767px) {
    .view-results .hidden-result {
        display: none; 
    }

    .view-results .results-hero-card {
        padding: 40px 20px;
    }

    .results-content-card {
        padding: 20px 10px;
    }
}

@media (min-width: 768px) {
    .view-results #results-wrapper {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch; 
        min-height: 400px; 
    }

    .view-results .results-hero-card, .results-content-card {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
        box-sizing: border-box;
    }

    /* State: Hidden */
    .view-results .hidden-result {
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        pointer-events: none;
    }

    /* State: Visible */
    .view-results .visible-result {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* Styling */
.view-results .results-hero-card {
    background-color: var(--main-colour);
    border: 5px solid var(--text-hover-colour);
    border-radius: 35px;
    color: white;
    text-align: center;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.results-content-card {
    background-color: white;
    border: 5px solid var(--text-hover-colour);
    border-radius: 35px;
    text-align: center;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.view-results .results-content-card h1 {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--main-colour) !important;
    margin-bottom: 10px;
}

.view-results .results-hero-card .fa-hand-fingers-crossed {
    font-size: 10rem;
    margin-bottom: 10px;
    color: var(--text-hover-colour);
}

.view-results .results-hero-card h1 {
    color: white !important; 
    font-size: 1.8rem;
    font-weight: 700;
}

.view-results .results-hero-card h1.sub-line {
    font-size: 2.5rem;
    margin-top: 5px;
}

.view-results .lottery-number-circles {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.view-results .entry-row {
    display: flex;
    flex-direction: row;
    gap: 5px;
    justify-content: center;
}

.view-results .lottery-number-circles .circle {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: var(--button-colour); 
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.view-results .circle.winner-ball {
    background-color: #FFD700 !important;
    color: #000 !important;
    border-color: #b8860b;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.view-results .winner-badge {
    background-color: var(--very-light-accent);
    padding: 2px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    display: inline-block;
    font-weight: bold;
}

.view-results .results-table-section {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.view-results .results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.view-results .results-table th, .results-table td {
    border: 1px solid var(--very-light-accent);
    padding: 12px 8px;
    text-align: left;
    font-size: 0.95rem;
}

.view-results .results-table th {
    background-color: var(--off-white);
    font-weight: 600;
    color: var(--text-colour);
}

.view-results .claim-button {
    background-color: var(--button-colour);
    color: white;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 35px;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    transition: transform 0.2s;
}

.view-results .claim-button:hover {
    color: var(--text-hover-colour) !important; 
}

.view-results #archive-results-container {
    transition: opacity 0.3s ease-in-out;
}

@media (max-width: 767px) {
    .view-results .results-hero-card h1.sub-line { font-size: 1.8rem; }
    .view-results .results-hero-card .fa-hand-fingers-crossed { font-size: 4rem; }
    .view-results .lottery-number-circles .circle { width: 30px; height: 30px; line-height: 30px; font-size: 0.9rem; }
    .view-results .scroll-item.card img{ width: 100%; }
    .view-results .results-testimonial-quote { padding-top: 2rem !important}
    .scrolling-cards-row.content-row { padding: 0px; }
}

.view-results .card-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Testimonial specific text fix */
.view-results .results-testimonial-quote {
    font-style: italic;
    line-height: 1.5;
    text-align: center;
    font-size: 0.95rem;
    height: 150px;
}

@media (min-width: 768px) {
    .view-results .results-testimonial-quote {
        height: 200px;
    }
    .view-results .scroll-item.card {
        height: auto !important;
        min-height: 400px;
        display: flex;
    }
}

/* ----------------------------------- */
/* ---- direct debit page styles ----- */
/* ----------------------------------- */

/* Custom styling for the selectable cards */
.dd_step_1 .entry-option {
    border: 2px solid var(--very-light-accent);
    border-radius: 10px;
    padding: 20px 10px; /* Increased vertical padding for better look when horizontal */
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%; /* Ensures all cards match height in the row */
    position: relative;
}

/* Hide the actual radio button */
.dd_step_1 .entry-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Hover effect */
.dd_step_1 .entry-option:hover {
    border-color: var(--button-colour);
    background-color: var(--off-white);
}

/* Active state (when radio is checked) */
.dd_step_1 .entry-radio:checked + .entry-option {
    border-color: var(--button-colour);
    background-color: rgba(var(--button-colour-rgb, 0, 123, 255), 0.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.dd_step_1 .entry-title {
    font-weight: bold;
    font-size: 1.1rem; /* Slightly smaller to fit 3-abreast better */
    color: var(--main-colour);
    display: block;
}

.dd_step_1 .entry-subtitle {
    font-size: 0.85rem;
    color: #6c757d;
}

.dd_step_1 .selected-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    color: var(--button-colour);
    display: none;
    font-size: 0.9rem;
}

.dd_step_1 .entry-radio:checked + .entry-option .selected-icon {
    display: block;
}

.dd_step_1 .entry-radio:checked + .entry-option {
    background-color: var(--off-white) !important;
    border-color: var(--button-colour) !important;
}

/* Modal Specific Styles */
#confirmChangeModal .modal-content {
    border-radius: 25px; /* Matches your card radius */
    border: none;
}

#confirmChangeModal .modal-body {
    padding: 2.5rem !important;
}

#confirmChangeModal .modal-body i.fa-circle-exclamation {
    color: var(--main-colour) !important; /* Use charity color for the icon */
}

#confirmChangeModal .form-cta-button {
    font-size: 1.2rem;
    padding: 10px;
}

/* Ensure the 'Current Plan' badge looks good */
.dd_step_1 .current-badge {
    display: inline-block;
    background: var(--main-colour);
    color: white;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 10px;
    font-weight: 600;
}
/* ---------------------------- */
/* ---  Cancel Page Styles  --- */
/* ---------------------------- */

.cancel-blade .conditional-content {
    display: none;
    padding: 10px;
}

.cancel-blade .conditional-content-brdr {
    border-radius: 35px;
    /* Mapped hardcoded #FF6600 to dynamic main colour */
    background-color: var(--main-colour);
}

/* --- Afford Options Text --- */
.cancel-blade #afford-options > div p {
    /* Text inside the retention box should contrast with main-colour background */
    color: white !important; 
    margin: 0;
    line-height: 1.4;
}

/* --- Common Button Styles for Retention/Switch Actions --- */
.cancel-blade .cancellation-action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.cancel-blade .cancellation-action-buttons .btn {
    font-weight: bold;
    flex-grow: 1;
    /* White background, main-colour text/border */
    background-color: white !important;
    color: var(--main-colour) !important;
    border: 3px solid var(--main-colour) !important;
}

/* --- Direct Debit Info Row (Pay a Different Way) --- */
.dd-info-row {
    display: flex;
    align-items: center;
    padding: 0px 10px;
    /* Mapped hardcoded #FF6600 to dynamic main colour */
    background-color: var(--main-colour);
    border-radius: 35px;
    gap: 15px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); /* Preserve shadow */
}

.cancel-blade .dd-icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    /* Mapped hardcoded border to dynamic main colour */
    border: 2px solid var(--main-colour); 
}

.cancel-blade .dd-icon-circle i {
    font-size: 1.5rem;
    color: var(--main-colour); /* Icon inside circle uses main colour */
}

.cancel-blade .dd-info-text {
    color: white;
    font-weight: 500;
    line-height: 1.4;
    flex-grow: 1;
    margin: 0;
}

.cancel-blade .dd-update-btn {
    flex-shrink: 0;
    font-weight: bold;
    white-space: nowrap;
    background-color: white !important;
    color: var(--main-colour) !important;
    border-radius: 35px;
}

.cancel-blade .btn.dd-update-btn:hover {
    /* Using button-hover-colour for text, slight grey for background */
    color: var(--button-hover-colour) !important; 
    background-color: var(--off-white) !important;
}

.cancel-blade .brdr-rad-35 {
    border-radius: 35px;
}

/* --- Media Queries --- */
@media (max-width: 767px) {
    .cancel-blade .card p.dd-info-text,
    #afford-options div p {
        line-height: 1.1;
        font-size: 1rem;
    }
}

/* --- Global Structural Styles (Mapped to use dynamic colors) --- */
.ob-cancel-page .conditional-content-brdr {
    border-radius: 35px;
    background-color: var(--main-colour);
}

/* Note: Most unused styles (dd-icon-circle, dd-info-row, etc.) are removed or simplified 
    to only use CSS variables if they were present in the original global styles. */
.ob-cancel-page .brdr-rad-35 {
    border-radius: 35px;
}

/* --- New styling for the button layout on this page --- */
.ob-cancel-page .ob-cancel-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.ob-cancel-page .ob-cancel-buttons .btn {
    font-weight: bold;
    font-size: 1.25rem;
    padding: 0.75rem 1rem;
    flex-grow: 1;
    border-radius: 35px;
}

/* How to Cancel Button (Secondary Action) */
.ob-cancel-page .btn-cancel-guide {
    background-color: white !important;
    color: var(--main-colour) !important;
    border: 3px solid var(--main-colour) !important;
    transition: background-color 0.2s;
}

.ob-cancel-page .btn-cancel-guide:hover {
    background-color: var(--off-white) !important;
}

/* Close Button (Primary Action) */
.ob-cancel-page .btn-close-confirm {
    background-color: var(--main-colour) !important;
    color: white !important;
}

.ob-cancel-page .btn-close-confirm:hover {
    background-color: var(--button-hover-colour) !important;
}

/* Modal Header/Footer styles */
.ob-cancel-page .modal-title {
    color: var(--text-colour); /* Modal title uses main text color */
}

.ob-cancel-page .modal-footer .btn {
    background-color: var(--main-colour) !important;
    color: white !important;
}

.ob-cancel-page .modal-footer .btn:hover {
        background-color: var(--button-hover-colour) !important;
}

/* ----------------------------------- */
/* ------- claim page styles --------- */
/* ----------------------------------- */

.claim-s2 .result-text {
    font-weight: bold;
    color: var(--text-colour);
    text-align: center;
}

.claim-s2 .result-text strong {
    /* Mapped hardcoded #FF6600 to dynamic main colour */
    color: var(--main-colour); 
}

.claim-s2 .cta-choice-buttons {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    flex-direction: column;
}

@media (min-width: 576px) {
    .claim-s2 .cta-choice-buttons {
        flex-direction: row;
    }
}

/* Custom secondary button style for 'Donate Prize' */
.claim-s2 .btn-secondary-choice {
    background-color: transparent !important;
    font-size: 26px;
    font-weight: bold;
    color: var(--main-colour) !important; 
    border: 2px solid var(--main-colour) !important; /* Mapped hardcoded #FF6600 */
    border-radius: 35px; /* Added to make sure styling isn't missed */
    transition: all 0.2s ease;
}

.claim-s2 .btn-secondary-choice:hover {
    background-color: var(--off-white) !important; /* Used off-white for light hover effect */
    color: var(--main-colour) !important;
}

/* Primary button uses the reusable form-cta-button base styling */
.claim-s2 .btn-primary-choice {
    /* Inherits form-cta-button base styles implicitly, or we define it similarly */
    /* Ensure it uses the rounded corners */
    border-radius: 35px !important;
}

/* ----------------------------------- */
/* ---- confirmation page styles ----- */
/* ----------------------------------- */

.confirm-blade .form-check-input {
    border: 3px solid var(--text-colour); 
    background-color: var(--off-white); 
    width: 1.25em; 
    height: 1.25em;
    cursor: pointer;
}

.confirm-blade .form-check-input:checked {
    background-color: var(--main-colour); 
    border-color: var(--main-colour); 
}

.confirm-blade .confirmation-icon-row {
    display: flex;
    align-items: center; 
    margin-bottom: 20px;
}

.confirm-blade .confirmation-icon-row i {
    font-size: 1.8rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.confirm-blade .confirmation-icon-row .fa-check-circle {
    /* Mapped success color to Bootstrap/standard green */
    color: #198754; 
}

.confirm-blade .confirmation-icon-row .fa-calendar-alt {
    /* Mapped hardcoded #FF6600 to dynamic main colour */
    color: var(--main-colour); 
}

.confirm-blade .confirmation-text {
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--text-colour);
    text-align: left;
}

.confirm-blade .confirmation-text strong {
    /* Mapped hardcoded #FF6600 to dynamic main colour */
    color: var(--main-colour);
}

/* ------------------------------------- */
/* ---        Media Queries          --- */
/* ------------------------------------- */

@media (max-width: 1320px) {
    .scrolling-cards-row .card-scroller {
        width: 770px;
    }
}

@media (max-width: 890px) {

    .header-geometry {
        top: -160px;
    }

    .desktop-logo {
        max-height: 70px;
        width: 90%;
    }

    .logged-out-nav-links a {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 32px;
        text-align: center; 
    }

    .hero {
        flex-direction: column;
    }

    .hero-image {
        order: 2;
        max-width: 460px; 
    }

    .hero-content {
        order: 3;
        margin: 0 8px;
    }
    
    .alt-hero .hero-content {
        margin: 0;
    }

    .hero .cta-button {
        display: none;
    }

    .hero .image-container.video video {
        width: 85vw;
        height: 100%;
    }

    .scrolling-cards-row .card-scroller {
        width: 371px;
    }

    .testimonial .name {
        max-width: 140px;
        text-align: left;
    }

    .testimonial img {
        width: 100px;
        height: auto;
    }

    .testimonial .mobile-image {
        display: block;
    }

    .testimonial .desktop-image {
        display: none;
    }

    .testimonial.testimonial-with-image p {
        text-align: center;
    }

    .testimonial.testimonial-with-image .content, 
    .testimonial.testimonial-with-image .content .info {
        justify-content: center;
    }

    .testimonial-with-image .content {
        margin-right: 0;
    }

    .testimonial {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
        min-height: 100%;
    }

    .testimonial .content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding: 0 10px;
    }

    .testimonial-row p {
        text-align: center;
        margin-top: 5px; 
        margin-bottom: 5px;
    }
    
    .testimonial-with-image .content {
        justify-content: center; 
    }
}

@media (min-width: 768px) {
    .header-geometry {
        width: 55%;
        top: -150px;
        right: 10;
    }
}

@media (min-width: 768px) {
    
    .logo-container .mobile-logo {
        display: none;
    }
    .logo-container .desktop-logo {
        display: block;
    }
    .pinned-cta {
        display: none;
    }
    .h-md-fixed {
        height: 500px !important;
    }

    .scrolling-cards-row .card-content img{
        object-fit: fill;
        width: 100%;
    }
}

@media (max-width: 767px) {
    
    header {
        margin: 0;
    }

    .hero-content h1,
    .hero-content h2 {
        display: none;
    }

    .mobile-title {
        display: flex;
        order: 1;
        text-align: center;
        font-size: 3vw;
    }
    
    .mobile-title h1 {
        color: white;
        text-align: center;
    }

    header .header-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    .logged-out-nav-links {
        
        order: 1; 
        width: 100%;
        justify-content: space-around;
        padding: 0 10px 10px 10px;
        border-bottom: 1px solid var(--white-transparent);
        margin-left: 0;
        gap: 0;
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .logo-container {
        order: 2; 
        padding-top: 10px;
        padding-left: 0px; 
        padding-right: 0px;
        width: 100%;
    }
    
    .logo-container .mobile-logo {
        display: block;
        max-width: 200px; 
        height: auto;
        margin-bottom: 20px;
        margin-left: auto;
        margin-right: auto;
        padding-top: 5px;
        padding-bottom: 5px;
    }
    
    .logo-container .desktop-logo {
        display: none;
    }

    .image-container img {
        object-fit: fill;
        transform: scale(1.05) translateX(2%) translateY(2%);
    }
    .image-container {
        height: 100%;
    }

    .footer-floating-cta-wrapper {
        display: none;
    }

    .hero .hero-content h3 {
        display: none !important;
    }

    .hero .cta-button {
        display: block;
        margin: 50px auto 0;
    }

    .faqs-section {
        width: 100%;
        padding: 0 50px 20px;
        margin-top: 30px;
    }

    .faqs-section h2 {
        text-align: left;
    }

    body > main > div.hero.main-hero > div.hero-content {
        margin-top: 50px;
    }

    .info-row-with-icon {
        flex-direction: row !important; 
        justify-content: flex-start !important; 
        align-items: center !important; 
    }

    .min-hght-80 {
        min-height: 60vh;
    }

    .hero-content > p{
        margin-top: 20px;
    }

    .scrolling-cards-row.content-row {
        padding: 20px 0 0;
    }

    a.card {
        margin: 0 8px !important; 
        width: 100% !important;
        max-width: none !important;
        flex-shrink: 0;
    }

    .card-content {
        width: 100% !important; 
        box-shadow: 0px 1px 9px 0px var(--shade-black-30) !important;
    }

    .scrolling-cards-row h2 {
        padding-left: 20px;
        padding-right: 20px;
        text-align: center; 
    }

    .results-testimonial-quote {
        padding-top: 10px !important; 
        min-height: 100px;
    }

    footer {
        padding-top: 22px;
    }

    .card.mb-mob {
        margin-bottom: 22px;
    }
    
    .row.g-3.mb-4 {
        padding-left: 0 !important; 
        padding-right: 0 !important;
        margin-left: -5px !important;
        margin-right: -5px !important;
    }

    .row.g-3.mb-4 > div.col-4 {
        padding-left: 5px !important; 
        padding-right: 5px !important;
    }
    
    .cancellation-reason-btn {
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important; 
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        height: auto !important; 
        min-height: 120px !important; 
    }

    .cancellation-reason-btn span {
        text-align: center !important;
        font-size: 1rem !important;
        line-height: 1.1;
        text-align: center;
        word-break: break-word; 
        overflow-wrap: break-word;
        padding: 0px 3px;
    }

    .dd-info-row {
        flex-direction: row !important;
        align-items: center !important; 
        padding: 15px !important; 
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
    }

    .dd-icon-circle {
        flex-shrink: 0 !important; 
        margin-bottom: 0 !important;
        width: 45px;
        height: 45px;
    }

    .dd-info-text {
        flex-grow: 1 !important;
        flex-basis: 0;  
        text-align: left !important;
        margin: 0 !important; 
        line-height: 1.2 !important;
        min-width: 0;
    }

    .dd-update-btn {
        width: 100% !important; 
        max-width: 100% !important;
        margin-top: 15px !important;
        margin-bottom: 0 !important;
    }

    #afford-options {
        padding: 15px !important; 
    }

    .cancellation-reason-btn .icon-circle {
        width: 50px !important; 
        height: 50px !important; 
        margin-bottom: 5px !important;
    }

    .cancellation-reason-btn .icon-circle i {
        font-size: 1.5rem !important; 
    }
    
    .d-flex.justify-content-between.gap-3.mt-4 {
        padding: 0 5px;
    }
    
    .d-flex.justify-content-between.gap-3.mt-4 a.btn,
    .btn.btn-lg.w-50.gc-btn2 {
        padding: 0.5rem 0.3rem !important; 
        white-space: normal !important;
        text-align: center;
        line-height: 1.2;
        font-size: 1rem;
    }

    .entry-actions-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .cancellation-action-buttons .btn {
        font-size: 1rem;
    }

    .ob-cancel-buttons {
        flex-direction: column !important;
        align-items: center; 
    }
    
    .ob-cancel-buttons .btn {
        width: 100% !important; 
        flex: 1 1 auto;
        margin-bottom: 10px; 
        max-width: 350px;
    }
    
    .ob-cancel-buttons .btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 700px) {
    .testimonial-row {
        padding: 40px 20px;
    }
    .testimonial-row .testimonial-scroller {
        padding: 0 10px;
    }
    .flickity-button {
        display: none;
    }
}

@media (max-width: 500px) {
    .logo-container img {
        height: auto;
        max-width: 70vw;
    }
    .hero .image-container.video video {
        width: 100%;
        height: 100%;
    }
    .info-row-with-icon {
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .scrolling-cards-row .card-scroller {
        grid-auto-columns: minmax(100%, 1fr);
    }

    .scrolling-cards-row .card {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .scrolling-cards-row .card-scroller img {
        object-position: center;
    }

    .menu-button {
        padding: 5px 20px;
    }
}

@media (max-width: 420px) {
    .cta-button {
        font-size: 130%;
    }
}

@media (max-width: 310px) {
    .cta-button {
        font-size: 100%;
    }
}