/*
 * Lawn Soldier Quotes — Frontend Styles
 * Version: 1.0.5
 *
 * All selectors use the lsq- prefix or are scoped under .lsq-quote-form-container.
 * No global element or WordPress class overrides.
 */

/* =========================================================================
   CSS Custom Properties — scoped to the quote container
   ========================================================================= */
.lsq-quote-form-container {
    --lsq-blue:        #2271b1;
    --lsq-blue-dark:   #135e96;
    --lsq-blue-bg:     #f0f6fc;
    --lsq-blue-border: #c0d7ef;
    --lsq-green:       #00a651;
    --lsq-red:         #d63638;
    --lsq-gray-50:     #f8f9fa;
    --lsq-gray-100:    #f0f0f1;
    --lsq-gray-200:    #c3c4c7;
    --lsq-gray-500:    #646970;
    --lsq-gray-900:    #1d2327;
    --lsq-radius:      8px;
    --lsq-shadow:      0 2px 12px rgba(0,0,0,0.09);
    --lsq-font:        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* =========================================================================
   Container
   ========================================================================= */
.lsq-quote-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 36px 32px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.09);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* =========================================================================
   Title
   ========================================================================= */
.lsq-quote-title {
    margin: 0 0 28px;
    font-size: 26px;
    font-weight: 800;
    color: #1d2327;
    text-align: center;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

/* =========================================================================
   Form structure
   ========================================================================= */
.lsq-quote-form {
    margin: 0;
}

.lsq-form-group {
    margin-bottom: 22px;
}

.lsq-form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    color: #1d2327;
    font-size: 14px;
    line-height: 1.4;
}

.lsq-form-group .required {
    color: #d63638;
    margin-left: 2px;
}

/* =========================================================================
   Inputs
   ========================================================================= */
.lsq-input {
    width: 100%;
    padding: 11px 14px;
    font-size: 15px;
    border: 1.5px solid #c3c4c7;
    border-radius: 8px;
    background: #fff;
    color: #1d2327;
    box-sizing: border-box;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    font-family: inherit;
    line-height: 1.5;
}

.lsq-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34,113,177,0.15);
}

.lsq-input::placeholder {
    color: #8c8f94;
    font-size: 14px;
}

/* Input group: input + unit badge */
.lsq-input-group {
    display: flex;
    align-items: stretch;
}

.lsq-input-group .lsq-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.lsq-input-addon {
    display: flex;
    align-items: center;
    padding: 11px 16px;
    background: #f0f6fc;
    border: 1.5px solid #c3c4c7;
    border-left: none;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    color: #2271b1;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.lsq-field-description {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #646970;
    line-height: 1.5;
}

/* =========================================================================
   Buttons
   ========================================================================= */
.lsq-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
}

.lsq-button:focus {
    outline: 3px solid rgba(34,113,177,0.35);
    outline-offset: 2px;
}

.lsq-button-primary {
    width: 100%;
    background: #2271b1;
    color: #fff;
    padding: 14px 22px;
    font-size: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(34,113,177,0.25);
}

.lsq-button-primary:hover {
    background: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(34,113,177,0.30);
}

.lsq-button-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(34,113,177,0.2);
}

.lsq-button-submit {
    width: 100%;
    background: #00a651;
    color: #fff;
    padding: 14px 22px;
    font-size: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,166,81,0.25);
}

.lsq-button-submit:hover {
    background: #007a3d;
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(0,166,81,0.28);
}

.lsq-button-submit:disabled {
    background: #8c8f94;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

/* =========================================================================
   Quote Result
   ========================================================================= */
.lsq-quote-result {
    margin-top: 28px;
}

.lsq-quote-success {
    background: #f0f6fc;
    border: 2px solid #2271b1;
    border-radius: 10px;
    padding: 22px 24px;
}

.lsq-quote-success > h3 {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 800;
    color: #2271b1;
    text-align: center;
    letter-spacing: -0.01em;
}

.lsq-quote-breakdown {
    background: #fff;
    padding: 6px 4px;
    border-radius: 8px;
    margin-bottom: 14px;
    border: 1px solid #d8e8f4;
}

.lsq-quote-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 16px;
    border-bottom: 1px solid #f0f0f1;
}

.lsq-quote-line:last-child {
    border-bottom: none;
}

.lsq-quote-label {
    font-size: 14px;
    color: #646970;
    font-weight: 500;
}

.lsq-quote-value {
    font-size: 14px;
    font-weight: 700;
    color: #1d2327;
    letter-spacing: 0.01em;
}

/* Total row */
.lsq-quote-total {
    background: #f0f6fc;
    border-top: 2px solid #2271b1 !important;
    border-bottom: none;
    border-radius: 0 0 7px 7px;
    padding: 14px 16px;
}

.lsq-quote-total .lsq-quote-label {
    font-size: 16px;
    font-weight: 800;
    color: #1d2327;
}

.lsq-quote-total .lsq-quote-value {
    font-size: 26px;
    font-weight: 800;
    color: #2271b1;
    letter-spacing: -0.02em;
}

.lsq-quote-note {
    margin: 10px 0 0;
    font-size: 12px;
    color: #646970;
    text-align: center;
    font-style: italic;
    line-height: 1.5;
}

/* =========================================================================
   Notices — error / warning
   ========================================================================= */
.lsq-quote-notice {
    padding: 22px 24px;
    border-radius: 10px;
    text-align: center;
}

.lsq-quote-notice > h3 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 800;
}

.lsq-quote-notice > p {
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.55;
}

.lsq-quote-error-notice {
    background: #fff5f5;
    border: 2px solid #d63638;
    color: #1d2327;
}

.lsq-quote-error-notice h3 { color: #d63638; }

.lsq-quote-warning-notice {
    background: #fffbeb;
    border: 2px solid #dba617;
    color: #1d2327;
}

.lsq-quote-warning-notice h3 { color: #996800; }

/* Shortcode configuration error (shown in wp_kses context) */
.lsq-quote-error {
    padding: 16px 20px;
    background: #fff5f5;
    border: 1px solid #d63638;
    border-radius: 8px;
    color: #d63638;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
}

/* =========================================================================
   Phone CTA (free version)
   ========================================================================= */
.lsq-quote-cta {
    margin-top: 20px;
    padding: 20px 24px;
    background: #f0f6fc;
    border: 2px solid #2271b1;
    border-radius: 10px;
    text-align: center;
}

.lsq-quote-cta > p {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.lsq-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 24px;
    font-weight: 800;
    color: #2271b1;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: color 0.15s ease;
}

.lsq-phone-link:hover {
    color: #135e96;
    text-decoration: underline;
}

/* =========================================================================
   Company contact (premium version, shown after calculation)
   ========================================================================= */
.lsq-company-contact {
    margin-top: 16px;
    padding: 16px 20px;
    background: #f6f7f7;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e0e0e1;
}

.lsq-contact-text {
    margin: 0;
    font-size: 15px;
    color: #1d2327;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

/* =========================================================================
   Submit Section (premium)
   ========================================================================= */
.lsq-submit-section {
    margin-top: 20px;
    padding: 22px 24px;
    background: #f0f6fc;
    border: 2px solid #2271b1;
    border-radius: 10px;
    text-align: center;
}

.lsq-submit-note {
    margin: 10px 0 0;
    font-size: 12px;
    color: #646970;
    font-style: italic;
    line-height: 1.5;
}

/* =========================================================================
   Success Message (premium post-submission)
   ========================================================================= */
.lsq-submission-message {
    margin-top: 24px;
    padding: 32px 28px;
    background: #f0fff7;
    border: 2px solid #00a651;
    border-radius: 12px;
    text-align: center;
}

.lsq-success-content > h3 {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 800;
    color: #00a651;
}

.lsq-success-content > p {
    margin: 0;
    font-size: 16px;
    color: #1d2327;
    line-height: 1.6;
}

/* =========================================================================
   Google Places Autocomplete styling — scoped selector
   (pac-container is injected by Google; style it carefully)
   ========================================================================= */
.pac-container.lsq-pac-override {
    border-radius: 8px;
    border: 1.5px solid #c3c4c7;
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    margin-top: 3px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/*
 * NOTE: .pac-container is injected by Google Maps outside the plugin's DOM.
 * The styles below are intentionally minimal and won't override custom
 * theme styles since pac-container is always outside plugin scope.
 */
.pac-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border-radius: 8px;
    border: 1.5px solid #c3c4c7;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    margin-top: 3px;
    overflow: hidden;
}

.pac-item {
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    line-height: 1.45;
    border-top: 1px solid #f0f0f1;
}

.pac-item:hover {
    background-color: #f0f6fc;
}

.pac-item-selected {
    background-color: #2271b1;
    color: #fff;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media screen and (max-width: 640px) {
    .lsq-quote-form-container {
        padding: 24px 18px;
        border-radius: 8px;
        box-shadow: none;
    }

    .lsq-quote-title {
        font-size: 22px;
    }

    .lsq-quote-total .lsq-quote-value {
        font-size: 22px;
    }

    .lsq-input-group {
        flex-direction: column;
    }

    .lsq-input-group .lsq-input {
        border-right: 1.5px solid #c3c4c7;
        border-radius: 8px 8px 0 0;
        border-bottom: none;
    }

    .lsq-input-addon {
        border-left: 1.5px solid #c3c4c7;
        border-top: none;
        border-radius: 0 0 8px 8px;
        justify-content: center;
    }

    .lsq-phone-link {
        font-size: 20px;
    }
}

/* =========================================================================
   Privacy / Consent Block
   ========================================================================= */
.lsq-privacy-block {
    margin-top: 16px;
    padding: 16px 20px;
    background: #f9f9f9;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    font-size: 13px;
    color: #3c434a;
    line-height: 1.6;
}

.lsq-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #3c434a;
}

.lsq-consent-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

.lsq-data-use {
    margin: 0 0 8px;
    font-size: 12px;
    color: #646970;
}

.lsq-privacy-link {
    margin: 0;
    font-size: 12px;
}

.lsq-privacy-link a {
    color: #2271b1;
    text-decoration: underline;
}

.lsq-privacy-link a:hover {
    color: #135e96;
}

/* =========================================================================
   Out-of-Service-Area Message
   ========================================================================= */
.lsq-out-of-range {
    padding: 20px 24px;
    background: #fff8f0;
    border: 2px solid #c0392b;
    border-radius: 10px;
    text-align: center;
}

.lsq-out-of-range-title {
    font-size: 18px;
    font-weight: 700;
    color: #c0392b;
    margin: 0 0 10px;
}

.lsq-out-of-range p {
    margin: 0 0 14px;
    color: #3c434a;
    font-size: 15px;
}

/* =========================================================================
   Oversize Yard Notice
   ========================================================================= */
.lsq-yard-oversize {
    margin-top: 16px;
    padding: 16px 20px;
    background: #fffbf0;
    border: 2px solid #e8a000;
    border-radius: 10px;
    text-align: center;
}

.lsq-yard-oversize-title {
    font-size: 16px;
    font-weight: 700;
    color: #a06000;
    margin: 0 0 8px;
}

.lsq-yard-oversize p {
    margin: 0;
    color: #3c434a;
    font-size: 14px;
    line-height: 1.6;
}
