/**
 * Sell Page Styles
 *
 * @package Sellio
 */

/* Hero Section - Sell Page */
.sell-hero {
    position: relative;
    min-height: 700px;
    margin-top: 0;
    overflow: hidden;
    width: 100%;
}

.sell-hero__inner {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    min-height: 700px;
    display: flex;
    align-items: center;
    padding: 0 var(--container-padding);
    width: 100%;
}

.sell-hero__card {
    position: relative;
    z-index: 2;
    background-color: #fff;
    padding: var(--space-48) var(--space-64);
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.sell-hero__image {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
    z-index: 1;
}

.sell-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

/* Sell page: full-width hero image only (matches buy page hero) */
.sell-hero--fullwidth {
    min-height: 0;
}

.sell-hero--fullwidth .sell-hero__inner {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: min(42.5vh, 380px);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 0;
}

.sell-hero--fullwidth .sell-hero__image {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
    min-height: min(42.5vh, 380px);
    height: auto;
    overflow: hidden;
    z-index: 1;
}

.sell-hero--fullwidth .sell-hero__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.sell-hero__title {
    font-size: var(--fs-3xl);
    font-weight: 600;
    color: var(--color-text);
    line-height: var(--lh-snug);
    margin-bottom: var(--space-16);
    white-space: nowrap;
}

.sell-hero__text {
    font-size: var(--fs-lg);
    color: var(--color-text);
    opacity: 0.8;
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-24);
}

.sell-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-8);
    padding: var(--space-16) var(--space-32);
    background: var(--color-dark-green);
    color: white;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: var(--fs-base);
}

.sell-hero__btn:hover {
    background: var(--color-dark-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(43, 61, 43, 0.35);
}

/* Why Sell Section */
.why-sell {
    padding: var(--space-80) 0;
    background: white;
}

.why-sell__header {
    text-align: center;
    margin-bottom: var(--space-64);
}

.why-sell__label {
    display: inline-block;
    padding: var(--space-8) var(--space-24);
    background: var(--color-dark-green);
    color: #fff;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-20);
}

.why-sell__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-24);
    line-height: var(--lh-tight);
}

.why-sell__subtitle {
    font-size: var(--fs-lg);
    color: var(--color-text);
    opacity: 0.7;
    max-width: none;
    width: 100%;
    margin: 0 auto;
    line-height: var(--lh-relaxed);
}

/* WYSIWYG nests <p> / block wrappers; strip phantom “narrow column” from editor or WP blocks */
.why-sell__header .why-sell__subtitle,
.why-sell__header .why-sell__subtitle * {
    max-width: none !important;
}

.why-sell__header .why-sell__subtitle p,
.why-sell__header .why-sell__subtitle div[class*="wp-block"],
.why-sell__header .why-sell__subtitle .acf-innerblocks-container {
    box-sizing: border-box;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.why-sell__header .why-sell__subtitle img,
.why-sell__header .why-sell__subtitle figure {
    max-width: 100% !important;
    height: auto;
}

.why-sell__header .why-sell__subtitle p:last-child {
    margin-bottom: 0;
}

.why-sell__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-32);
    margin-top: var(--space-48);
}

.why-sell__card {
    position: relative;
    overflow: hidden;
    padding: var(--space-32);
    border-radius: var(--radius-lg);
    background: white;
    border: 2px solid var(--color-border);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.why-sell__card:hover {
    border-color: var(--color-dark-green);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.why-sell__card-icon {
    position: absolute;
    top: 50%;
    right: var(--space-24);
    transform: translateY(-50%);
    width: min(52%, 11rem);
    height: min(52%, 11rem);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    color: var(--color-dark-green);
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.why-sell__card-icon svg {
    width: 100%;
    height: 100%;
}

.why-sell__card-title {
    position: relative;
    z-index: 1;
    font-size: var(--fs-xl);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-16);
    line-height: var(--lh-snug);
}

.why-sell__card-text {
    position: relative;
    z-index: 1;
    color: var(--color-text);
    opacity: 0.7;
    line-height: var(--lh-relaxed);
    flex-grow: 1;
}

/* About / Sellio Difference — sell page label pill */
.about-us--sell-page .about-us__label {
    display: inline-block;
    padding: var(--space-8) var(--space-24);
    background: var(--color-dark-green);
    color: #fff;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-20);
}

/* The Sellio Difference — page-sell.php (WYSIWYG wraps paragraphs in <p>; keep 18px vs block editor / body) */
.about-us--sell-page .about-us__text {
    font-size: 18px;
    line-height: var(--lh-relaxed);
    color: #4b5563;
    margin-bottom: var(--space-20);
}

.about-us--sell-page .about-us__text:last-child {
    margin-bottom: 0;
}

.about-us--sell-page .about-us__text p,
.about-us--sell-page .about-us__text li {
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

/* What's Provided Section */
.whats-provided {
    padding: var(--space-80) 0;
    background: linear-gradient(180deg, rgba(249, 250, 251, 1) 0%, rgba(255, 255, 255, 1) 100%);
}

.whats-provided__header {
    text-align: center;
    margin-bottom: var(--space-64);
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--container-padding);
}

.whats-provided__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-16);
    line-height: var(--lh-tight);
}

.whats-provided__subtitle {
    font-size: var(--fs-lg);
    color: var(--color-text);
    opacity: 0.7;
    max-width: none;
    width: 100%;
    margin: 0 auto;
    line-height: var(--lh-relaxed);
}

.whats-provided__header .whats-provided__subtitle,
.whats-provided__header .whats-provided__subtitle * {
    max-width: none !important;
}

.whats-provided__header .whats-provided__subtitle p,
.whats-provided__header .whats-provided__subtitle div[class*="wp-block"],
.whats-provided__header .whats-provided__subtitle .acf-innerblocks-container {
    box-sizing: border-box;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.whats-provided__header .whats-provided__subtitle img,
.whats-provided__header .whats-provided__subtitle figure {
    max-width: 100% !important;
    height: auto;
}

.whats-provided__header .whats-provided__subtitle p:last-child {
    margin-bottom: 0;
}

/* Stacked list — matches buy page benefits (image left, text right, shared border) */
.whats-provided__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: var(--container-max);
    margin: var(--space-48) auto 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: #fff;
}

.whats-provided__card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
    border: none;
    box-shadow: none;
    transition: background-color 0.2s ease;
}

.whats-provided__card:not(:last-child) {
    border-bottom: 1px solid var(--color-border);
}

.whats-provided__card:hover {
    background-color: rgba(43, 61, 43, 0.04);
}

.whats-provided__card-image {
    position: relative;
    flex: 0 0 auto;
    width: clamp(200px, 28vw, 300px);
    aspect-ratio: 1 / 1;
    align-self: center;
}

.whats-provided__card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.whats-provided__card-image::after {
    display: none;
}

.whats-provided__card-content {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    padding: var(--space-32) var(--space-40);
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.whats-provided__card-title {
    font-size: clamp(1.25rem, 2.5vw, var(--fs-2xl));
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 var(--space-16);
    line-height: var(--lh-tight);
}

.whats-provided__card-text {
    font-size: 1.125rem;
    color: var(--color-text);
    opacity: 0.82;
    line-height: var(--lh-relaxed);
    margin: 0;
}

/* Packages Section */
.packages {
    padding: var(--space-80) 0;
    background: linear-gradient(180deg, rgba(249, 250, 251, 1) 0%, rgba(255, 255, 255, 1) 100%);
}

.packages__header {
    text-align: center;
    margin-bottom: var(--space-64);
}

.packages__label {
    display: inline-block;
    padding: var(--space-8) var(--space-24);
    background: var(--color-dark-green);
    color: #fff;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-20);
}

.packages__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-20);
    line-height: var(--lh-tight);
}

.packages__subtitle {
    font-size: var(--fs-lg);
    color: var(--color-text);
    opacity: 0.7;
    max-width: none;
    width: 100%;
    margin: 0;
    line-height: var(--lh-relaxed);
}

.packages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-32);
    margin-top: var(--space-48);
    align-items: stretch;
}

/* Package Card */
.package-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-40);
    border: 2px solid var(--color-border);
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-dark-green);
}

.package-card--featured {
    border-color: var(--color-dark-green);
    border-width: 3px;
    box-shadow: var(--shadow-md);
}

.package-card--featured::before {
    content: "Most Popular";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-dark-green);
    color: white;
    padding: var(--space-8) var(--space-24);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--fs-sm);
    white-space: nowrap;
}

.package-card__badge {
    display: inline-block;
    padding: var(--space-8) var(--space-16);
    background: var(--color-dark-green);
    color: #fff;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--fs-sm);
    margin-bottom: var(--space-16);
    width: fit-content;
}

.package-card__title {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-8);
    line-height: var(--lh-tight);
}

.package-card__subtitle {
    color: var(--color-text);
    opacity: 0.7;
    margin-bottom: var(--space-32);
    font-size: var(--fs-base);
    line-height: var(--lh-relaxed);
}

.package-card__price {
    font-size: clamp(2.5rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-dark-green);
    margin-bottom: var(--space-8);
    line-height: 1;
}

.package-card__price-label {
    color: var(--color-text);
    opacity: 0.6;
    font-size: var(--fs-sm);
    margin-bottom: var(--space-32);
}

.package-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-32);
    flex-grow: 1;
}

.package-card__feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-12);
    margin-bottom: var(--space-16);
    color: var(--color-text);
    opacity: 0.8;
}

.package-card__feature-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--color-dark-green);
    margin-top: 2px;
}

.package-card__feature-text {
    flex: 1;
    line-height: var(--lh-relaxed);
    font-size: var(--fs-base);
}

.package-card__feature-text strong {
    opacity: 1;
    color: var(--color-text);
    font-weight: 600;
}

.package-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    padding: var(--space-16) var(--space-24);
    background: var(--color-dark-green);
    color: white;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: var(--fs-base);
    margin-top: auto;
}

.package-card__cta:hover {
    background: var(--color-dark-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(43, 61, 43, 0.35);
}

.package-card--featured .package-card__cta:hover {
    background: var(--color-dark-green-hover);
}

.package-card--featured .package-card__cta {
    background: var(--color-dark-green);
    box-shadow: 0 4px 12px rgba(43, 61, 43, 0.25);
}

/* Calculator Section */
.calculator {
    padding: var(--space-80) 0;
    background: white;
}

.calculator__inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.calculator__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-16);
    line-height: var(--lh-tight);
}

.calculator__subtitle {
    font-size: var(--fs-lg);
    color: var(--color-text);
    opacity: 0.7;
    margin-bottom: var(--space-48);
    line-height: var(--lh-relaxed);
}

.calculator__input-group {
    margin-bottom: var(--space-32);
}

.calculator__label {
    display: block;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-12);
    text-align: left;
    font-size: var(--fs-base);
}

.calculator__input {
    width: 100%;
    padding: var(--space-16);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--fs-lg);
    transition: all 0.3s ease;
    font-family: inherit;
}

.calculator__input:focus {
    outline: none;
    border-color: var(--color-dark-green);
    box-shadow: 0 0 0 3px rgba(43, 61, 43, 0.1);
}

.calculator__results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-24);
    margin-top: var(--space-32);
}

.calculator__result {
    padding: var(--space-24);
    background: var(--color-dark-green);
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-dark-green);
    transition: all 0.3s ease;
}

.calculator__result:hover {
    border-color: var(--color-dark-green-hover);
    background: var(--color-dark-green-hover);
}

.calculator__result-label {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: var(--space-12);
    font-weight: 500;
}

.calculator__result-value {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.calculator__savings {
    margin-top: var(--space-32);
    padding: var(--space-24);
    background: var(--color-dark-green);
    color: white;
    border-radius: var(--radius-lg);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

/* Contact Section Customizations for Sell Page */
.contact--sell .contact__title {
    color: var(--color-dark-green) !important;
}

.contact--sell .contact__feature-number {
    background-color: var(--color-dark-green) !important;
    color: #fff !important;
    font-weight: 700;
}

/* Contact Pitch Section */
.contact__pitch {
    margin-bottom: var(--space-32);
}

/* Select dropdown styling */
.contact__form-input select,
select.contact__form-input {
    width: 100%;
    padding: 14px 40px 14px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 15px;
    color: var(--color-text);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23333' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    cursor: pointer;
    appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact__form-input select:focus,
select.contact__form-input:focus {
    outline: none;
    border-color: var(--color-dark-green);
    box-shadow: 0 0 0 3px rgba(43, 61, 43, 0.12);
}

/* Form Messages */
.contact__form-message {
    padding: var(--space-16) var(--space-24);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-24);
}

.contact__form-message p {
    margin: 0;
    font-weight: 500;
}

.contact__form-success {
    background-color: var(--color-dark-green);
    border: 1px solid var(--color-dark-green);
    color: #fff;
}

.contact__form-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

.contact__form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact__form-submit-loading {
    display: inline-flex;
    align-items: center;
    gap: var(--space-8);
}

.contact__form-submit-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Styles */
@media (min-width: 769px) {
    .package-card--featured {
        transform: scale(1.03);
    }
    
    .package-card--featured:hover {
        transform: scale(1.03) translateY(-8px);
    }
}

@media (max-width: 768px) {
    .sell-hero--fullwidth .sell-hero__inner {
        min-height: min(42.5vh, 380px);
    }

    .sell-hero--fullwidth .sell-hero__image {
        min-height: min(42.5vh, 380px);
    }

    .sell-hero__card {
        margin-left: var(--container-padding);
        margin-right: var(--container-padding);
        max-width: calc(100% - var(--container-padding) * 2);
        padding: var(--space-32);
    }
    
    .sell-hero__title {
        font-size: var(--fs-2xl);
        white-space: normal;
    }
    
    .whats-provided {
        padding: var(--space-48) 0;
    }
    
    .whats-provided__grid {
        gap: 0;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }

    .whats-provided__card {
        flex-direction: column;
    }

    .whats-provided__card-image {
        flex: none;
        width: min(100%, 360px);
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        aspect-ratio: 1 / 1;
    }

    .whats-provided__card-image img {
        position: absolute;
    }

    .whats-provided__card-content {
        padding: var(--space-24);
    }

    .whats-provided__card-title {
        font-size: var(--fs-xl);
    }

    .whats-provided__card-text {
        font-size: 1.125rem;
    }
    
    .packages__grid {
        grid-template-columns: 1fr;
        gap: var(--space-24);
    }
    
    .package-card {
        padding: var(--space-32);
    }
    
    .package-card--featured {
        transform: scale(1);
    }
    
    .package-card--featured:hover {
        transform: translateY(-8px);
    }
    
    .why-sell__grid {
        grid-template-columns: 1fr;
        gap: var(--space-24);
    }
    
    .why-sell {
        padding: var(--space-48) 0;
    }
    
    .packages {
        padding: var(--space-48) 0;
    }
    
    .calculator {
        padding: var(--space-48) 0;
    }
    
    .calculator__results {
        grid-template-columns: 1fr;
    }
}
