﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {

  margin-bottom: 60px;

}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* make our custom modal hidden by default, centered when .show is applied */
#infoModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

    #infoModal.show {
        display: flex;
    }

    /* overlay covers the entire screen */
    #infoModal .modal__overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
    }

    /* the white “card” in front */
    /*#infoModal .modal__content {
        position: relative;
        background: #fff;
        max-width: 800px;
        width: 90%;
        max-height: 90%;
        overflow-y: auto;
        border-radius: 8px;
        padding: 1.5rem;
        z-index: 2100;
    }*/

/* 1) Allow the modal backdrop to scroll, not the content pane */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z‐index: 2000;
    overflow-y: auto; /* page‐level scrolling when needed */
    padding: 2vh 0; /* small top/bottom gutters */
}

    .modal.show {
        display: flex;
    }

/* 2) Let the content fill about 90vw, no internal scroll */
.modal__content {
    position: relative;
    background: #fff;
    width: 90vw; /* 90% of viewport width */
    max-width: 90vw;
    height: auto; /* grow with content */
    max-height: none; /* don't cap height */
    overflow: visible; /* no inner scrollbars */
    border-radius: .5rem;
    padding: 2rem;
    box-shadow: 0 0 1rem rgba(0,0,0,.2);
    transform: translateY(20px);
    opacity: 0;
    transition: opacity .3s, transform .3s;
}

.modal.show .modal__content {
    opacity: 1;
    transform: translateY(0);
}

/* 3) If you have any inner max-heights, disable them */
.tab-content,
.features,
.pillars {
    max-height: none !important;
}


/* backdrop & centering */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 2vh 1vw;
}

    .modal.show {
        display: flex;
    }

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

/* content area */
.modal__content {
    position: relative;
    background: #fff;
    width: 80vw;
    max-width: 1000px;
    border-radius: .5rem;
    padding: 2rem;
    box-shadow: 0 0 1rem rgba(0,0,0,.2);
    transform: translateY(20px);
    opacity: 0;
    transition: opacity .3s, transform .3s;
}

.modal.show .modal__content {
    opacity: 1;
    transform: translateY(0);
}

/* close button */
.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #666;
}

/* form controls */
.form-file-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.form-file-text {
    cursor: pointer;
    color: #555;
}

/* typography & spacing tweaks */
.modal__form h2 {
    margin-bottom: .5rem;
}

.modal__form p {
    margin-bottom: 1rem;
    color: #555;
}
/* reuse the same modal base styles from Hire Us */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 2vh 1vw;
}

    .modal.show {
        display: flex;
    }

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.modal__content {
    position: relative;
    background: #fff;
    width: 80vw;
    max-width: 1000px;
    border-radius: .5rem;
    padding: 2rem;
    box-shadow: 0 0 1rem rgba(0,0,0,.2);
    transform: translateY(20px);
    opacity: 0;
    transition: opacity .3s, transform .3s;
}

.modal.show .modal__content {
    opacity: 1;
    transform: translateY(0);
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
}

/* small tweaks */
.modal__info ul {
    margin-left: 1rem;
}

    .modal__info ul li {
        margin-bottom: .5rem;
    }
/* reuse your modal base styles… */
#pricingModal .modal__content {
    width: 80vw;
    max-width: 900px;
    padding: 2rem;
}

.modal__hero h2 {
    margin-bottom: .25rem;
}

.modal__hero .modal__sub {
    color: #555;
}

/* Plan cards */
.plan-tabs {
    flex-wrap: wrap;
}

.plan-card {
    flex: 1 1 150px;
    background: #fff8e1;
    border-radius: .5rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

    .plan-card i {
        color: #ffc107;
    }

    .plan-card.selected {
        background: #ffe066;
        box-shadow: 0 0 .5rem rgba(0,0,0,.2);
        transform: translateY(-4px);
    }

/* Plan details */
.plan-details h4 {
    margin-top: 0;
}

.plan-details ul {
    margin: .5rem 0 0 1rem;
}

    .plan-details ul li {
        margin-bottom: .5rem;
    }

/* CTA button */
.btn-cta {
    background: #ffc107;
    color: #212529;
    border: none;
    padding: .75rem 1.5rem;
    border-radius: .25rem;
}

    .btn-cta:hover {
        background: #e0a800;
    }
/* ensure form fields look nice */
#contactFormSection .form-label {
    font-weight: 500;
}

#contactFormSection .form-control[readonly] {
    background-color: #f8f9fa;
    opacity: 1;
}
