/* See My Offers Form Widget Styles */

.smo-form-wrapper {
    padding: 30px 20px 80px;
}

.smo-form-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Heading */
.smo-heading {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1f2937;
    margin-bottom: 40px;
    text-align: center;
}

.smo-heading .highlight {
    color: #22c55e;
}

/* Form Card */
.smo-form-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 80px 100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Form */
.smo-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Section */
.smo-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.smo-section-title {
    font-size: 24px;
    font-weight: 400;
    color: #49B46B;
    margin: 0;
    line-height: 20px;
}

/* Form Grid */
.smo-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* Form Group */
.smo-form-group {
    display: flex;
    flex-direction: column;
}

.smo-form-group.business-owner-group {
   margin-top: 10px;
}

.smo-form-group.smo-full-width {
    grid-column: span 2;
}

.smo-form-group.smo-small-width {
    grid-column: span 1;
}

/* City, State, Zip Code - City (50%) | State + Zip (50%) */
.smo-city-state-zip-wrapper {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.smo-state-zip-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Label */
.smo-label {
    font-size: 17px;
    font-weight: 400;
    color: #5f5f5f;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Tooltip Container */
.smo-info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.smo-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 14px;
    font-weight: 800;
    cursor: help;
    line-height: 1;
}

/* Tooltip Text */
.smo-tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1f2937;
    color: #ffffff;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Tooltip Arrow */
.smo-tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
}

/* Show Tooltip on Hover */
.smo-info-tooltip:hover .smo-tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Input & Select */
.smo-input,
.smo-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 1px solid #EDEEF0 !important;
    border-radius: 4px;
    background-color: #ffffff;
    color: #1f2937;
    transition: all 0.3s ease;
    outline: none;
    height: 52px;
}

.smo-input:focus,
.smo-select:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.smo-input::placeholder,
.smo-select::placeholder {
    color: #9ca3af;
}

/* Select Dropdown */
.smo-select {
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    cursor: pointer;
}

/* Input Error State */
.smo-input.smo-error,
.smo-select.smo-error {
    border-color: #ef4444 !important;
}

/* Phone Input Container */
.smo-phone-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.smo-phone-prefix {
    font-size: 1rem;
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    flex-shrink: 0;
}

.smo-phone-input {
    flex: 1;
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 1px solid #EDEEF0;
    border-radius: 4px;
    background-color: #ffffff;
    color: #1f2937;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.smo-phone-input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.smo-phone-input.smo-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Inline Error Message */
.smo-field-error {
    display: none;
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 6px;
    font-weight: 500;
}

.smo-field-error.show {
    display: block;
    animation: smoErrorFadeIn 0.3s ease-in-out;
}

@keyframes smoErrorFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Radio Group */
.smo-radio-group {
    display: flex;
    gap: 24px;
    padding-top: 4px;
}

.smo-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 1rem;
    color: #374151;
}

.smo-radio input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #A8A8A8 ;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.smo-radio input[type="radio"]:checked {
    background-color: #22c55e;
    border-color: #22c55e;
}

.smo-radio input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    border-radius: 2px;
}

.smo-radio input[type="radio"]:hover {
    border-color: #22c55e;
}

.smo-radio span {
    user-select: none;
}

.smo-radio-group.smo-error .smo-radio input[type="radio"] {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.smo-radio-group.smo-error .smo-radio span {
    color: #ef4444;
}

/* Submit Section */
.smo-submit-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

/* Submit Button */
.smo-submit-button {
    width: 100%;
    max-width: 300px;
    padding: 18px 40px;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}

.smo-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}

.smo-submit-button:active {
    transform: translateY(0);
}

/* Credit Note */
.smo-credit-note {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: #5F5F5F;
}

/* Legal Text */
.smo-legal-text {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: #5F5F5F99;
}

.smo-legal-text a {
    color: #5F5F5F99;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.smo-legal-text a:hover {
    color: #5F5F5F;
}

/* Address Row Layout - Street and Apt */
.smo-section .smo-form-grid .smo-form-group.smo-full-width:has(+ .smo-form-group.smo-small-width) {
    grid-column: 1 / 2;
}

.smo-form-group.smo-small-width:nth-of-type(8) {
    grid-column: 2 / 3;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .smo-form-card {
        padding: 40px;
    }

    .smo-heading {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .smo-form-wrapper {
        padding: 30px 15px 50px;
    }

    .smo-form-card {
        padding: 30px 24px;
    }

    .smo-heading {
        font-size: 1.75rem;
        margin-bottom: 30px;
    }

    .smo-section-title {
        font-size: 1.25rem;
    }

    .smo-form-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .smo-form-group,
    .smo-form-group.smo-full-width,
    .smo-form-group.smo-small-width {
        grid-column: span 1 !important;
    }

    /* Reset address row layout on mobile */
    .smo-section .smo-form-grid .smo-form-group.smo-full-width:has(+ .smo-form-group.smo-small-width),
    .smo-form-group.smo-small-width:nth-of-type(8) {
        grid-column: span 1 !important;
    }

    /* City, State, Zip on mobile - stack vertically */
    .smo-city-state-zip-wrapper {
        grid-column: span 1 !important;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .smo-state-zip-group {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .smo-radio-group {
        gap: 16px;
    }

    .smo-submit-button {
        max-width: 100%;
        padding: 16px 32px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .smo-form-wrapper {
        padding: 30px 15px;
    }

    .smo-form-card {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .smo-heading {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }

    .smo-section {
        gap: 20px;
    }

    .smo-section-title {
        font-size: 1.125rem;
        padding-bottom: 12px;
    }

    .smo-form-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .smo-form-group,
    .smo-form-group.smo-full-width,
    .smo-form-group.smo-small-width {
        grid-column: span 1 !important;
    }

    /* Reset address row layout on mobile */
    .smo-section .smo-form-grid .smo-form-group.smo-full-width:has(+ .smo-form-group.smo-small-width),
    .smo-form-group.smo-small-width:nth-of-type(8) {
        grid-column: span 1 !important;
    }

    /* City, State, Zip on mobile - stack vertically */
    .smo-city-state-zip-wrapper {
        grid-column: span 1 !important;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .smo-state-zip-group {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .smo-input,
    .smo-select {
        padding: 12px 14px;
        font-size: 0.9375rem;
    }

    .smo-phone-input {
        padding: 12px 14px;
    }

    .smo-label {
        font-size: 0.875rem;
    }

    .smo-submit-button {
        padding: 14px 28px;
        font-size: 0.9375rem;
    }

    .smo-credit-note {
        font-size: 0.8125rem;
    }

    .smo-legal-text {
        font-size: 0.75rem;
    }

    /* Tooltip adjustments for mobile */
    .smo-tooltip-text {
        white-space: normal;
        max-width: 200px;
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}

