/**
 * Siteplot Developer - Professional Frontend Styles
 */

/* ===========================================
   CSS Variables
   =========================================== */
:root {
    --sp-primary: #2563eb;
    --sp-primary-hover: #1d4ed8;
    --sp-primary-light: #dbeafe;
    --sp-secondary: #1e293b;
    --sp-accent: #059669;
    --sp-accent-light: #d1fae5;
    --sp-text: #334155;
    --sp-text-light: #64748b;
    --sp-border: #e2e8f0;
    --sp-bg-light: #f8fafc;
    --sp-bg-dark: #0f172a;
    --sp-radius: 8px;
    --sp-radius-lg: 12px;
    --sp-shadow: 0 1px 3px rgba(0,0,0,0.1);
    --sp-shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --sp-shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

/* ===========================================
   Buttons
   =========================================== */
.sp-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--sp-radius);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.sp-btn--primary {
    background: var(--sp-primary);
    color: #fff !important;
}

.sp-btn--primary:hover {
    background: var(--sp-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--sp-shadow-md);
}

.sp-btn--accent {
    background: var(--sp-accent);
    color: #fff !important;
}

.sp-btn--accent:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: var(--sp-shadow-md);
}

.sp-btn--outline {
    background: transparent;
    border-color: var(--sp-primary);
    color: var(--sp-primary) !important;
}

.sp-btn--outline:hover {
    background: var(--sp-primary);
    color: #fff !important;
}

.sp-btn--lg {
    padding: 18px 36px;
    font-size: 1.1em;
}

/* ===========================================
   Hero Section
   =========================================== */
.sp-hero {
    padding: 80px 40px;
    text-align: center;
    margin-bottom: 0;
}

.sp-hero--local {
    background: linear-gradient(135deg, var(--sp-primary) 0%, #1e40af 100%);
    color: #fff;
}

.sp-hero--info {
    background: linear-gradient(180deg, var(--sp-bg-light) 0%, #fff 100%);
    border-bottom: 1px solid var(--sp-border);
}

.sp-hero__content {
    max-width: 700px;
    margin: 0 auto;
}

.sp-hero__headline {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 20px 0;
}

.sp-hero--local .sp-hero__headline {
    color: #fff;
}

.sp-hero__subheadline {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    opacity: 0.9;
    margin: 0 0 16px 0;
    font-weight: 500;
}

.sp-hero--local .sp-hero__subheadline {
    color: rgba(255,255,255,0.9);
}

.sp-hero__intro {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0 0 30px 0;
}

.sp-hero--local .sp-hero__intro {
    color: rgba(255,255,255,0.85);
}

.sp-hero__buttons {
    margin-top: 30px;
}

/* ===========================================
   Trust Section
   =========================================== */
.sp-trust-section {
    background: #fff;
    padding: 40px 20px;
    border-bottom: 1px solid var(--sp-border);
}

.sp-trust__grid {
    gap: 15px;
}

.sp-trust__item {
    background: var(--sp-bg-light);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--sp-secondary);
    border: 1px solid var(--sp-border);
}

.sp-trust__item p {
    margin: 0;
}

/* ===========================================
   Services Section
   =========================================== */
.sp-services-section {
    padding: 80px 20px;
    background: #fff;
}

.sp-section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--sp-secondary);
    margin-bottom: 1rem;
}

.sp-section-subtitle {
    color: var(--sp-text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.sp-services-grid {
    gap: 24px;
    margin: 40px 0;
}

.sp-service-card {
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-lg);
    padding: 30px;
    transition: all 0.3s ease;
    min-width: 250px;
    flex: 1;
    max-width: 350px;
}

.sp-service-card:hover {
    border-color: var(--sp-primary);
    box-shadow: var(--sp-shadow-lg);
    transform: translateY(-4px);
}

.sp-service-card h3 {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
}

.sp-service-card h3 a {
    color: var(--sp-secondary);
    text-decoration: none;
}

.sp-service-card h3 a:hover {
    color: var(--sp-primary);
}

.sp-service-card p {
    color: var(--sp-text-light);
    margin: 0;
}

.sp-service-card__link {
    margin-top: 15px !important;
}

.sp-service-card__link a {
    color: var(--sp-primary);
    font-weight: 600;
    text-decoration: none;
}

.sp-service-card--large {
    padding: 40px;
    max-width: 400px;
}

/* ===========================================
   Newsletter Section
   =========================================== */
.sp-newsletter-section {
    background: linear-gradient(135deg, var(--sp-primary-light) 0%, #fff 100%);
    padding: 80px 20px;
    border-top: 1px solid var(--sp-border);
    border-bottom: 1px solid var(--sp-border);
}

.sp-newsletter {
    text-align: center;
}

.sp-newsletter h2 {
    color: var(--sp-secondary);
    margin-bottom: 12px;
}

.sp-newsletter p {
    color: var(--sp-text-light);
    margin-bottom: 30px;
}

.sp-newsletter__form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.sp-newsletter__form input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 14px 20px;
    border: 2px solid var(--sp-border);
    border-radius: var(--sp-radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.sp-newsletter__form input[type="email"]:focus {
    outline: none;
    border-color: var(--sp-primary);
}

.sp-newsletter__form button {
    font-size: 1rem;
}

.sp-newsletter__privacy {
    font-size: 0.85rem;
    color: var(--sp-text-light);
    margin-top: 15px;
}

/* ===========================================
   Latest Posts Section
   =========================================== */
.sp-latest-section {
    padding: 80px 20px;
    background: #fff;
}

.sp-latest-section .wp-block-latest-posts {
    margin: 40px 0;
    padding: 0;
    list-style: none;
}

.sp-latest-section .wp-block-latest-posts.is-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.sp-latest-section .wp-block-latest-posts li {
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.sp-latest-section .wp-block-latest-posts li:hover {
    box-shadow: var(--sp-shadow-lg);
    transform: translateY(-4px);
}

.sp-latest-section .wp-block-latest-posts__featured-image {
    margin: 0;
}

.sp-latest-section .wp-block-latest-posts__featured-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.sp-latest-section .wp-block-latest-posts__post-title {
    display: block;
    padding: 20px 20px 10px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--sp-secondary);
    text-decoration: none;
}

.sp-latest-section .wp-block-latest-posts__post-title:hover {
    color: var(--sp-primary);
}

.sp-latest-section .wp-block-latest-posts__post-excerpt {
    padding: 0 20px;
    color: var(--sp-text-light);
    font-size: 0.95rem;
}

.sp-latest-section .wp-block-latest-posts__post-date {
    padding: 10px 20px 20px;
    color: var(--sp-text-light);
    font-size: 0.85rem;
}

/* ===========================================
   Final CTA Section
   =========================================== */
.sp-final-cta {
    padding: 80px 20px;
    background: var(--sp-bg-light);
}

.sp-cta--final {
    background: var(--sp-secondary);
    border-radius: var(--sp-radius-lg);
    padding: 60px 40px;
    text-align: center;
}

.sp-cta--final h2 {
    color: #fff;
    margin-bottom: 15px;
}

.sp-cta--final p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
}

/* ===========================================
   About Page Styles
   =========================================== */
.sp-about-header {
    padding: 60px 20px 40px;
    text-align: center;
    background: var(--sp-bg-light);
}

.sp-about-story {
    padding: 60px 20px;
}

.sp-about__paragraph {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5em;
}

.sp-mission-section {
    background: var(--sp-primary-light);
    padding: 60px 20px;
}

.sp-mission {
    text-align: center;
}

.sp-mission h2 {
    color: var(--sp-primary);
    margin-bottom: 20px;
}

.sp-values-section {
    padding: 60px 20px;
    background: #fff;
}

.sp-values-grid {
    gap: 24px;
    margin-top: 40px;
}

.sp-value-card {
    background: var(--sp-bg-light);
    padding: 30px;
    border-radius: var(--sp-radius-lg);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

.sp-value-card h3 {
    color: var(--sp-primary);
    margin: 0 0 12px 0;
}

.sp-value-card p {
    color: var(--sp-text-light);
    margin: 0;
}

/* ===========================================
   Start Here Page Styles
   =========================================== */
.sp-start-header {
    padding: 60px 20px 40px;
    text-align: center;
    background: linear-gradient(180deg, var(--sp-primary-light) 0%, #fff 100%);
}

.sp-learn-section {
    padding: 60px 20px;
    background: #fff;
}

.sp-learn-box {
    background: var(--sp-bg-light);
    border: 2px solid var(--sp-border);
    border-radius: var(--sp-radius-lg);
    padding: 40px;
}

.sp-learn-box h2 {
    margin: 0 0 20px 0;
}

.sp-learn-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sp-learn-list li {
    padding: 12px 0 12px 35px;
    position: relative;
    border-bottom: 1px solid var(--sp-border);
    font-size: 1.05rem;
}

.sp-learn-list li:last-child {
    border-bottom: none;
}

.sp-learn-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--sp-accent);
    font-weight: bold;
    font-size: 1.2rem;
}

.sp-steps-section {
    padding: 60px 20px;
    background: var(--sp-bg-light);
}

.sp-steps-grid {
    margin-top: 40px;
}

.sp-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.sp-step__number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--sp-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.sp-step__number p {
    margin: 0;
    color: #fff;
}

.sp-step__content h3 {
    margin: 0 0 8px 0;
    color: var(--sp-secondary);
}

.sp-step__content p {
    margin: 0;
    color: var(--sp-text-light);
}

.sp-popular-section {
    padding: 60px 20px;
    background: #fff;
}

.sp-categories-section {
    padding: 60px 20px;
    background: var(--sp-bg-light);
}

.sp-categories-section .wp-block-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.sp-categories-section .wp-block-categories li {
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: 50px;
    padding: 10px 20px;
}

.sp-categories-section .wp-block-categories a {
    color: var(--sp-secondary);
    text-decoration: none;
    font-weight: 500;
}

.sp-categories-section .wp-block-categories a:hover {
    color: var(--sp-primary);
}

/* ===========================================
   Contact Page Styles
   =========================================== */
.sp-contact-grid {
    gap: 24px;
    margin: 40px 0;
}

.sp-contact-card {
    background: var(--sp-bg-light);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-lg);
    padding: 30px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.sp-contact-card h3 {
    margin: 0 0 12px 0;
    font-size: 1.5rem;
}

.sp-contact-card p {
    margin: 0;
}

.sp-contact-card a {
    color: var(--sp-primary);
    font-weight: 600;
    text-decoration: none;
}

.sp-contact-card a:hover {
    text-decoration: underline;
}

/* ===========================================
   Lead Text
   =========================================== */
.sp-lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--sp-text-light);
}

/* ===========================================
   Quick Answer / Key Takeaway (Posts)
   =========================================== */
.sp-quick-answer {
    background: var(--sp-primary-light);
    border-left: 4px solid var(--sp-primary);
    padding: 24px 28px;
    border-radius: 0 var(--sp-radius) var(--sp-radius) 0;
    margin: 2em 0;
}

.sp-quick-answer__label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sp-primary);
    margin: 0 0 10px 0;
}

.sp-quick-answer__text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--sp-secondary);
    margin: 0;
}

/* ===========================================
   Table of Contents
   =========================================== */
.sp-toc {
    background: var(--sp-bg-light);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    padding: 24px 28px;
    margin: 2em 0;
}

.sp-toc__label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--sp-secondary);
    margin: 0 0 15px 0;
}

.sp-toc__list {
    margin: 0;
    padding-left: 24px;
}

.sp-toc__list li {
    margin-bottom: 10px;
}

.sp-toc__list a {
    color: var(--sp-primary);
    text-decoration: none;
}

.sp-toc__list a:hover {
    text-decoration: underline;
}

/* ===========================================
   Callout Boxes
   =========================================== */
.sp-callout {
    padding: 24px 28px;
    border-radius: var(--sp-radius);
    margin: 2em 0;
}

.sp-callout__label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
}

.sp-callout__text {
    margin: 0;
    line-height: 1.7;
}

.sp-callout--tip {
    background: var(--sp-accent-light);
    border-left: 4px solid var(--sp-accent);
}

.sp-callout--tip .sp-callout__label {
    color: var(--sp-accent);
}

.sp-callout--warning {
    background: #fef3c7;
    border-left: 4px solid #d97706;
}

.sp-callout--warning .sp-callout__label {
    color: #d97706;
}

/* ===========================================
   CTA Blocks (Posts)
   =========================================== */
.sp-cta {
    background: var(--sp-bg-light);
    border: 2px solid var(--sp-border);
    border-radius: var(--sp-radius-lg);
    padding: 30px;
    text-align: center;
    margin: 2.5em 0;
}

.sp-cta__heading {
    margin: 0 0 10px 0;
    color: var(--sp-secondary);
}

.sp-cta__text {
    color: var(--sp-text-light);
    margin: 0 0 20px 0;
}

.sp-cta--mid {
    background: linear-gradient(135deg, var(--sp-primary-light) 0%, #fff 100%);
    border-color: var(--sp-primary);
}

/* ===========================================
   FAQ Accordion
   =========================================== */
.sp-faq {
    margin: 2.5em 0;
}

.sp-faq__heading {
    margin-bottom: 1.5em;
    color: var(--sp-secondary);
}

.sp-faq__item {
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.sp-faq__question {
    background: var(--sp-bg-light);
    padding: 18px 50px 18px 22px;
    margin: 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--sp-secondary);
    position: relative;
}

.sp-faq__question::after {
    content: '+';
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--sp-primary);
}

.sp-faq__item.open .sp-faq__question::after {
    content: '−';
}

.sp-faq__answer {
    padding: 0 22px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sp-faq__item.open .sp-faq__answer {
    padding: 18px 22px;
    max-height: 500px;
}

.sp-faq__answer p {
    margin: 0;
    color: var(--sp-text);
}

/* ===========================================
   Related Posts
   =========================================== */
.sp-related {
    background: var(--sp-bg-light);
    border-radius: var(--sp-radius-lg);
    padding: 28px;
    margin: 2.5em 0;
}

.sp-related__heading {
    font-size: 1.15rem;
    margin: 0 0 18px 0;
    color: var(--sp-secondary);
}

.sp-related__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-related__list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--sp-border);
}

.sp-related__list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sp-related__list a {
    color: var(--sp-primary);
    text-decoration: none;
    font-weight: 500;
}

.sp-related__list a:hover {
    text-decoration: underline;
}

/* ===========================================
   Comparison Table
   =========================================== */
.sp-comparison {
    margin: 2em 0;
    overflow-x: auto;
}

.sp-comparison__table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--sp-radius);
    overflow: hidden;
    border: 1px solid var(--sp-border);
}

.sp-comparison__table th,
.sp-comparison__table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--sp-border);
}

.sp-comparison__table th {
    background: var(--sp-secondary);
    color: #fff;
    font-weight: 600;
}

.sp-comparison__table tr:nth-child(even) {
    background: var(--sp-bg-light);
}

.sp-comparison__table .sp-check {
    color: var(--sp-accent);
    font-weight: bold;
}

.sp-comparison__table .sp-cross {
    color: #dc2626;
    font-weight: bold;
}

/* ===========================================
   Checklist
   =========================================== */
.sp-checklist {
    background: var(--sp-bg-light);
    border-radius: var(--sp-radius);
    padding: 24px 28px;
    margin: 2em 0;
}

.sp-checklist__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sp-secondary);
    margin: 0 0 15px 0;
}

.sp-checklist__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-checklist__list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

.sp-checklist__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--sp-accent);
    font-weight: bold;
}

/* ===========================================
   Newsletter Forms
   =========================================== */
.sp-newsletter-section {
    padding: 60px 40px;
    text-align: center;
    border-radius: 12px;
    max-width: 100%;
    margin: 0;
}

.sp-newsletter-section--dark {
    background: #1e293b;
    background: var(--sp-secondary, #1e293b);
    color: #fff;
}

.sp-newsletter-section--light {
    background: #f8fafc;
    background: var(--sp-bg-light, #f8fafc);
    border: 1px solid #e2e8f0;
    border: 1px solid var(--sp-border, #e2e8f0);
}

.sp-newsletter-section__headline {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #fff;
}

.sp-newsletter-section--dark .sp-newsletter-section__headline {
    color: #fff;
}

.sp-newsletter-section__subtext {
    font-size: 1.1rem;
    margin: 0 0 1.5rem;
    opacity: 0.9;
    color: #cbd5e1;
}

.sp-newsletter-section--dark .sp-newsletter-section__subtext {
    color: #cbd5e1;
}

.sp-newsletter-section__privacy {
    font-size: 0.85rem;
    margin: 1rem 0 0;
    opacity: 0.7;
    color: #94a3b8;
}

.sp-newsletter-section--dark .sp-newsletter-section__privacy {
    color: #94a3b8;
}

/* Newsletter Form */
.sp-newsletter-form__form {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
}

.sp-newsletter-form__form--inline {
    flex-direction: row;
}

.sp-newsletter-form__form--stacked {
    flex-direction: column;
    align-items: center;
}

.sp-newsletter-form__input {
    flex: 1;
    min-width: 250px;
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    border: 2px solid var(--sp-border, #e2e8f0);
    border-radius: 8px;
    border-radius: var(--sp-radius, 8px);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    background: #334155;
    color: #fff;
}

.sp-newsletter-form__input::placeholder {
    color: #94a3b8;
}

.sp-newsletter-form__input:focus {
    border-color: #60a5fa;
}

.sp-newsletter-section--dark .sp-newsletter-form__input {
    background: #334155;
    border-color: #475569;
    color: #fff;
}

.sp-newsletter-section--dark .sp-newsletter-form__input::placeholder {
    color: #94a3b8;
}

.sp-newsletter-section--dark .sp-newsletter-form__input:focus {
    border-color: #60a5fa;
}

.sp-newsletter-section--light .sp-newsletter-form__input {
    background: #fff;
    border-color: #e2e8f0;
    color: #1e293b;
}

.sp-newsletter-form__input--name {
    min-width: 150px;
    flex: 0.5;
}

.sp-newsletter-form__button {
    background: #2563eb;
    background: var(--sp-primary, #2563eb);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    border-radius: var(--sp-radius, 8px);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.sp-newsletter-form__button:hover {
    background: #1d4ed8;
    background: var(--sp-primary-hover, #1d4ed8);
    transform: translateY(-1px);
}

.sp-newsletter-form__button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.sp-newsletter-section--dark .sp-newsletter-form__button {
    background: #fff;
    color: #2563eb;
    color: var(--sp-primary, #2563eb);
}

.sp-newsletter-section--dark .sp-newsletter-form__button:hover {
    background: #f1f5f9;
}

/* Newsletter Messages */
.sp-newsletter-form__message {
    margin-top: 1rem;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.sp-newsletter-form__message--success {
    background: #d1fae5;
    color: #065f46;
}

.sp-newsletter-form__message--error {
    background: #fee2e2;
    color: #991b1b;
}

/* Newsletter Responsive */
@media (max-width: 600px) {
    .sp-newsletter-section {
        padding: 40px 20px;
    }
    
    .sp-newsletter-form__form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sp-newsletter-form__form--inline {
        flex-direction: column;
    }
    
    .sp-newsletter-form__input {
        min-width: 100%;
        width: 100%;
    }
    
    .sp-newsletter-form__button {
        width: 100%;
    }
}

/* ===========================================
   Contact Form
   =========================================== */
.sp-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sp-contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .sp-contact-form__row {
        grid-template-columns: 1fr;
    }
}

.sp-contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sp-contact-form__field label {
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
}

.sp-contact-form__field input,
.sp-contact-form__field select,
.sp-contact-form__field textarea {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    color: #1e293b;
}

.sp-contact-form__field input:focus,
.sp-contact-form__field select:focus,
.sp-contact-form__field textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.sp-contact-form__field input::placeholder,
.sp-contact-form__field textarea::placeholder {
    color: #94a3b8;
}

.sp-contact-form__field textarea {
    resize: vertical;
    min-height: 120px;
}

.sp-contact-form__field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.sp-contact-form__button {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.sp-contact-form__button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.sp-contact-form__button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.sp-contact-form__message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
}

.sp-contact-form__message--success {
    background: #d1fae5;
    color: #065f46;
}

.sp-contact-form__message--error {
    background: #fee2e2;
    color: #991b1b;
}

/* Shortcode Form Styles */
.sp-newsletter-form {
    padding: 30px;
    border-radius: var(--sp-radius-lg);
    background: var(--sp-bg-light);
    text-align: center;
}

.sp-newsletter-form--minimal {
    padding: 0;
    background: transparent;
}

.sp-newsletter-form__headline {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.sp-newsletter-form__subtext {
    color: var(--sp-text-light);
    margin: 0 0 1.5rem;
}

/* ===========================================
   Responsive
   =========================================== */
@media (max-width: 768px) {
    .sp-hero {
        padding: 60px 20px;
    }
    
    .sp-hero__headline {
        font-size: 1.8rem;
    }
    
    .sp-newsletter__form,
    .sp-newsletter-form__form {
        flex-direction: column;
    }
    
    .sp-newsletter__form input[type="email"],
    .sp-newsletter-form__input {
        min-width: auto;
        width: 100%;
    }
    
    .sp-newsletter-form__input--name {
        min-width: auto;
    }
    
    .sp-newsletter-form__button {
        width: 100%;
    }
    
    .sp-newsletter-section {
        padding: 30px 20px;
    }
    
    .sp-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .sp-service-card,
    .sp-value-card,
    .sp-contact-card {
        max-width: 100%;
    }
}

/* ===========================================
   Consultation Popup - Floating Action Button
   =========================================== */
.sp-consultation-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    padding: 16px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    z-index: 9998;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.sp-consultation-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(37, 99, 235, 0.5);
}

.sp-consultation-fab__icon {
    font-size: 1.25rem;
}

.sp-consultation-fab__icon--mobile {
    display: none;
}

.sp-consultation-fab__text {
    white-space: nowrap;
}

/* Mobile: Show call button instead */
@media (max-width: 768px) {
    .sp-consultation-fab {
        padding: 16px;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        justify-content: center;
        background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
        box-shadow: 0 4px 20px rgba(22, 163, 74, 0.4);
    }
    
    .sp-consultation-fab__icon {
        font-size: 1.5rem;
    }
    
    .sp-consultation-fab__icon--desktop {
        display: none;
    }
    
    .sp-consultation-fab__icon--mobile {
        display: inline;
    }
    
    .sp-consultation-fab__text {
        display: none;
    }
    
    .sp-consultation-fab:hover {
        box-shadow: 0 6px 30px rgba(22, 163, 74, 0.5);
    }
    
    /* Hide popup elements on mobile since we use phone call */
    .sp-consultation-popup,
    .sp-consultation-overlay {
        display: none !important;
    }
}

/* Overlay */
.sp-consultation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.sp-consultation-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup */
.sp-consultation-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.sp-consultation-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.sp-consultation-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.sp-consultation-popup__close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.sp-consultation-popup__header {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    padding: 28px 24px;
    text-align: center;
    border-radius: 16px 16px 0 0;
}

.sp-consultation-popup__header .sp-consultation-popup__icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.sp-consultation-popup__header h3 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.sp-consultation-popup__header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Consultation Form */
.sp-consultation-form {
    padding: 24px;
}

.sp-consultation-form__field {
    margin-bottom: 16px;
}

.sp-consultation-form__field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #1e293b;
    font-size: 0.9rem;
}

.sp-consultation-form__field input,
.sp-consultation-form__field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.sp-consultation-form__field input:focus,
.sp-consultation-form__field textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.sp-consultation-form__field input[readonly] {
    background: #f8fafc;
    color: #64748b;
}

.sp-consultation-form__button {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.sp-consultation-form__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.4);
}

.sp-consultation-form__button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.sp-consultation-form__message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.95rem;
}

.sp-consultation-form__message.success {
    background: #d1fae5;
    color: #065f46;
}

.sp-consultation-form__message.error {
    background: #fee2e2;
    color: #991b1b;
}

/* Mobile adjustments for popup */
@media (max-width: 480px) {
    .sp-consultation-popup {
        width: 95%;
        max-height: 85vh;
    }
    
    .sp-consultation-popup__header {
        padding: 20px 16px;
    }
    
    .sp-consultation-popup__header h3 {
        font-size: 1.25rem;
    }
    
    .sp-consultation-form {
        padding: 16px;
    }
}

/* ===========================================
   Mobile Header & Navigation
   =========================================== */
.sp-header {
    position: relative;
    z-index: 100;
}

.sp-header .wp-block-navigation__responsive-container-open {
    padding: 8px;
}

.sp-header .wp-block-navigation__responsive-container-open svg {
    width: 28px;
    height: 28px;
}

/* Mobile menu overlay */
.wp-block-navigation__responsive-container.is-menu-open {
    padding: 24px;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
    top: 16px;
    right: 16px;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    font-size: 1.25rem;
    padding: 12px 0;
}

/* Ensure header doesn't break on mobile */
@media (max-width: 768px) {
    .sp-header {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .sp-header__brand .wp-block-site-logo img {
        max-width: 140px;
        height: auto;
    }
    
    /* Hide desktop nav items, show hamburger */
    .sp-header__nav .wp-block-navigation__container {
        display: none;
    }
    
    .sp-header__nav .wp-block-navigation__responsive-container-open {
        display: flex !important;
    }
}

@media (max-width: 480px) {
    .sp-header__brand .wp-block-site-logo img {
        max-width: 120px;
    }
}
