/* Sell Your Home lead form */

/* This stylesheet only loads on the Sell Your Home template, so hiding the
   theme's breadcrumb banner here doesn't affect any other page. */
.breadcrumbs-banner {
    display: none;
}

.syh-wrap {
    --syh-primary: rgb(24, 88, 70);
    --syh-primary-dark: rgb(16, 63, 50);
    --syh-border: #e3e6e4;
    --syh-text: #1f2a24;
    --syh-muted: #6b756f;
    background: linear-gradient(180deg, #f4f8f6 0%, #ffffff 55%);
    padding: 56px 20px 80px;
}

.syh-intro {
    max-width: 640px;
    margin: 0 auto 32px;
    text-align: center;
}

.syh-intro h1 {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--syh-text);
    margin: 0 0 12px;
}

.syh-intro p {
    color: var(--syh-muted);
    font-size: 1.05rem;
    margin: 0;
}

.syh-card {
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(24, 88, 70, 0.1);
    border: 1px solid var(--syh-border);
    overflow: hidden;
}

.syh-progress {
    display: flex;
    align-items: center;
    padding: 24px 32px 0;
}

.syh-progress-step {
    flex: 1;
    height: 4px;
    background: var(--syh-border);
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: background 0.3s ease;
}

.syh-progress-step:last-child {
    margin-right: 0;
}

.syh-progress-step.is-active,
.syh-progress-step.is-done {
    background: var(--syh-primary);
}

.syh-body {
    padding: 32px;
}

.syh-step {
    display: none;
}

.syh-step.is-active {
    display: block;
    animation: syh-fade-in 0.35s ease;
}

@keyframes syh-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.syh-step h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--syh-text);
    margin: 0 0 6px;
}

.syh-step-sub {
    color: var(--syh-muted);
    margin: 0 0 24px;
    font-size: 0.98rem;
}

.syh-field {
    margin-bottom: 18px;
}

.syh-field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--syh-text);
    margin-bottom: 6px;
}

.syh-field input[type="text"],
.syh-field input[type="tel"],
.syh-field input[type="email"] {
    width: 100%;
    padding: 13px 14px;
    font-size: 1rem;
    border: 1.5px solid var(--syh-border);
    border-radius: 10px;
    background: #fbfcfb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.syh-field input:focus {
    outline: none;
    border-color: var(--syh-primary);
    box-shadow: 0 0 0 3px rgba(24, 88, 70, 0.12);
    background: #fff;
}

.syh-field .syh-error {
    display: none;
    color: #c0392b;
    font-size: 0.85rem;
    margin-top: 6px;
}

.syh-field.has-error input {
    border-color: #c0392b;
}

.syh-field.has-error .syh-error {
    display: block;
}

.syh-address-hint {
    font-size: 0.85rem;
    color: var(--syh-muted);
    margin-top: 6px;
}

.syh-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    gap: 12px;
}

.syh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 10px;
    padding: 14px 26px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.syh-btn-primary {
    background: var(--syh-primary);
    color: #fff;
    width: 100%;
    box-shadow: 0 6px 16px rgba(24, 88, 70, 0.28);
}

.syh-btn-primary:hover {
    background: var(--syh-primary-dark);
}

.syh-btn-primary:active {
    transform: translateY(1px);
}

.syh-btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

.syh-btn-secondary {
    background: transparent;
    color: var(--syh-muted);
    padding: 14px 8px;
}

.syh-btn-secondary:hover {
    color: var(--syh-text);
}

.syh-consent {
    font-size: 0.8rem;
    color: var(--syh-muted);
    margin-top: 18px;
    line-height: 1.5;
}

.syh-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: syh-spin 0.7s linear infinite;
    display: none;
}

.syh-btn-primary.is-loading .syh-spinner {
    display: inline-block;
}

.syh-btn-primary.is-loading .syh-btn-label {
    opacity: 0.85;
}

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

.syh-submit-error {
    display: none;
    background: #fdecea;
    color: #c0392b;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.9rem;
    margin-top: 16px;
}

.syh-submit-error.is-visible {
    display: block;
}

/* Thank-you step */
.syh-step-done {
    text-align: center;
    padding: 12px 0 8px;
}

.syh-check {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(24, 88, 70, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.syh-check svg {
    width: 30px;
    height: 30px;
}

.syh-step-done h2 {
    margin-bottom: 8px;
}

.syh-step-done p {
    color: var(--syh-muted);
    font-size: 1rem;
    max-width: 380px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .syh-intro h1 {
        font-size: 1.6rem;
    }

    .syh-body {
        padding: 24px 20px;
    }

    .syh-progress {
        padding: 20px 20px 0;
    }
}

/* Google Places Autocomplete dropdown sits above our card shadow */
.pac-container {
    z-index: 10000;
    border-radius: 10px;
    margin-top: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
