/**
 * Typical Costs Template Styles
 * Author: Steve Austen
 * Company: The PCGP
 */

/* Push content below the fixed header (33px top bar + 80px main header) */
.typical-costs-template {
    margin-top: 113px;
}

/* Account for WordPress admin bar when logged in */
.admin-bar .typical-costs-template {
    margin-top: 145px; /* 113px header + 32px admin bar */
}

/* WordPress admin bar changes at 782px and below to 46px height */
@media screen and (max-width: 782px) {
    .admin-bar .typical-costs-template {
        margin-top: 159px; /* 113px header + 46px admin bar */
    }
}

.typical-costs-header {
    color: #f3af2e !important;
    font-weight: 400;
    font-size: 24px;
    font-family: "Poppins", sans-serif;
    text-transform: none;
    text-align: center;
    margin-bottom: 10px;
}

.typical-costs-main-title {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: 48px;
    text-align: center;
    text-transform: uppercase;
    color: #231f20;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.typical-costs-terms {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 16px;
    text-align: center;
    color: #231f20;
    margin: 0;
}

.typical-costs-link {
    color: #231f20;
    text-decoration: none;
}

.typical-costs-link:hover {
    color: #f3af2e;
    text-decoration: underline;
}

.typical-costs-plans-row {
    margin-top: 40px;
    margin-bottom: 40px;
}

.typical-costs-plan-col {
    margin-bottom: 30px;
}

.typical-costs-plan-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: 100%;
    padding: 20px;
    transition: transform 0.3s ease;
}

.typical-costs-plan-card:hover {
    transform: translateY(-5px);
}

.typical-costs-plan-image {
    margin-bottom: 20px;
    text-align: center;
}

.typical-costs-plan-image img {
    max-width: 100%;
    height: auto;
}

.typical-costs-plan-content {
    font-family: "Poppins", sans-serif;
}

.plan-title {
    font-size: 18px;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.plan-label {
    color: #f3af2e;
    font-weight: 700;
}

.plan-subtitle {
    color: #231f20;
    font-weight: 400;
}

.plan-price {
    font-size: 16px;
    color: #231f20;
    margin-bottom: 20px;
}

.plan-include-heading {
    font-size: 18px;
    font-weight: 700;
    color: #231f20;
    margin: 0 0 15px 0;
}

.plan-details {
    font-size: 14px;
    line-height: 1.6;
    color: #231f20;
}

.plan-details p {
    margin-bottom: 10px;
}

.plan-details strong {
    font-weight: 700;
}

/* Booking Section */
.typical-costs-booking-section {
    margin-top: 60px;
    margin-bottom: 60px;
    text-align: center;
}

.typical-costs-booking-title {
    font-size: 36px;
    font-weight: 800;
    color: #231f20;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.booking-box {
    border-radius: 12px;
    padding: 60px 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.booking-box h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.booking-box p {
    font-size: 18px;
    margin-bottom: 30px;
}

.booking-box-dark {
    background: #231f20;
    color: #fff;
}

.booking-box-dark h3 {
    color: #fff;
}

.booking-box-yellow {
    background: #f3af2e;
    color: #231f20;
}

.booking-box-yellow h3 {
    color: #231f20;
}

.btn-yellow {
    background: #f3af2e;
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-yellow:hover {
    background: #e2a027;
    color: #fff;
    text-decoration: none;
}

.btn-dark {
    background: #231f20;
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-dark:hover {
    background: #333;
    color: #fff;
    text-decoration: none;
}

/* Modals */
body.modal-open {
    overflow: hidden;
}

.typical-costs-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.typical-costs-modal.is-active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.typical-costs-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
}

.typical-costs-modal-content {
    position: relative;
    background: #231f20;
    color: #fff;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 20px 40px 25px;
    z-index: 10000;
}

.tc-modal-close-wrap {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10001;
}

.tc-close-modal-x {
    background: #e13232;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    transition: background 0.3s ease;
}

.tc-close-modal-x:hover {
    background: #c02828;
}

.modal-heading {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.4;
    text-align: center;
    color: #fff;
    text-transform: none;
}

.modal-heading.uppercase {
    text-transform: uppercase;
}

.modal-image {
    margin-bottom: 30px;
    text-align: center;
}

.modal-image img {
    max-width: 100%;
    height: auto;
}

.modal-phone {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.modal-hours {
    font-size: 18px;
    text-align: center;
    margin-bottom: 0;
}

.yellow-text {
    color: #f3af2e;
}

.modal-note-section {
    margin-top: 15px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

.modal-hours-callback {
    font-size: 18px;
    margin-bottom: 5px;
    color: #fff;
}

.modal-hours-callback strong {
    color: #f3af2e;
}

.modal-note-text {
    font-size: 16px;
    line-height: 1.6;
}

.uppercase {
    text-transform: uppercase;
}

/* CF7 Styling for Modal */
.modal-form {
    margin-top: 15px;
}

.tc-form-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 8px;
}

.tc-form-field {
    margin-bottom: 8px;
}

.tc-form-field.half {
    flex: 1;
}

.tc-form-field.full {
    width: 100%;
}

.modal-form input[type="text"],
.modal-form input[type="email"],
.modal-form input[type="tel"],
.modal-form input[type="url"],
.modal-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: none;
    font-family: "Poppins", sans-serif;
    background: #fff;
    color: #231f20;
    margin-bottom: 0;
}

.tc-char-count {
    color: #fff;
    font-size: 14px;
    margin-top: 5px;
    text-align: left;
}

.wpcf7-form-control-wrap {
    display: block;
}

.modal-form input[type="submit"] {
    background: #f3af2e;
    color: #fff;
    padding: 10px 40px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 10px auto 0;
    width: auto;
}

.modal-form input[type="submit"]:hover {
    background: #e2a027;
}

/* Ensure placeholder text is visible and styled */
.modal-form ::placeholder {
    color: #757575;
    opacity: 1;
}

@media (max-width: 600px) {
    .tc-form-grid {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 767px) {
    .typical-costs-booking-title {
        font-size: 28px;
    }
    .booking-box {
        padding: 40px 20px;
        margin-bottom: 20px;
    }
    .typical-costs-modal-content {
        padding: 40px 20px 30px;
    }
    .modal-heading {
        font-size: 20px;
    }
}

/* Checkatrade Reviews – now handled by the K4 Reviews Carousel plugin */

/* ═══════════════════════════════════════════
   Editor Content Section (below carousel)
   ═══════════════════════════════════════════ */
.tc-editor-section {
    background: #fff;
    padding: 60px 0;
}

.tc-editor-content {
    max-width: 900px;
    margin: 0 auto;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.tc-editor-content h2 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #231f20;
    margin: 0 0 20px 0;
}

.tc-editor-content h3 {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #231f20;
    margin: 0 0 15px 0;
}

.tc-editor-content h4 {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #231f20;
    margin: 0 0 12px 0;
}

.tc-editor-content p {
    margin-bottom: 18px;
}

.tc-editor-content a {
    color: #f3af2e;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.tc-editor-content a:hover {
    color: #e2a027;
}

.tc-editor-content ul,
.tc-editor-content ol {
    margin: 0 0 20px 24px;
    padding: 0;
}

.tc-editor-content li {
    margin-bottom: 8px;
}

.tc-editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

.tc-editor-content blockquote {
    border-left: 4px solid #f3af2e;
    margin: 20px 0;
    padding: 15px 25px;
    background: #f9f9f9;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

@media (max-width: 600px) {
    .tc-editor-section {
        padding: 40px 0;
    }

    .tc-editor-content h2 {
        font-size: 26px;
    }

    .tc-editor-content h3 {
        font-size: 20px;
    }
}

