/* ============================================================
   TTR Free Estimate Form — Professional Styles
   ============================================================ */

.ttr-estimate-page {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, #f4f6f9 0%, #eef1f5 100%);
}

.ttr-estimate-intro {
    margin-bottom: 36px;
}

.ttr-estimate-intro h2 {
    font-size: 32px;
    font-weight: 800;
    color: #262e3b;
    margin-bottom: 12px;
}

.ttr-estimate-intro p {
    font-size: 17px;
    color: #5a6578;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Form card */
.ttr-estimate-form-wrap {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 40px 32px;
    box-shadow: 0 12px 48px rgba(38, 46, 59, 0.12);
    border: 1px solid rgba(38, 46, 59, 0.06);
}

/* Alerts */
.ttr-estimate-alerts .ttr-alert-success,
.ttr-estimate-alerts .ttr-alert-danger {
    display: none;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.5;
    align-items: flex-start;
    gap: 10px;
}

.ttr-estimate-alerts .ttr-alert-success {
    background: #e8f7ee;
    border: 1px solid #b8e6c8;
    color: #1a6b38;
}

.ttr-estimate-alerts .ttr-alert-danger {
    background: #fdecea;
    border: 1px solid #f5c6c2;
    color: #a12622;
}

.ttr-estimate-alerts .ttr-alert-success i,
.ttr-estimate-alerts .ttr-alert-danger i {
    margin-top: 2px;
    flex-shrink: 0;
}

.ttr-estimate-alerts .ttr-alert-success p,
.ttr-estimate-alerts .ttr-alert-danger ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ttr-estimate-alerts .ttr-alert-danger ul li {
    padding: 2px 0;
}

/* Form header */
.ttr-form-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f0f2f5;
}

.ttr-form-header-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ff5e14 0%, #e54f0a 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(255, 94, 20, 0.35);
}

.ttr-form-title {
    font-size: 26px;
    font-weight: 800;
    color: #262e3b;
    margin: 0 0 4px;
    line-height: 1.2;
}

.ttr-form-subtitle {
    color: #6c7a8d;
    margin: 0;
    font-size: 15px;
}

/* Sections */
.ttr-form-section {
    margin-bottom: 28px;
}

.ttr-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ttr-section-num {
    width: 28px;
    height: 28px;
    background: #262e3b;
    color: #d4af37;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ttr-section-heading h4 {
    font-size: 17px;
    font-weight: 700;
    color: #262e3b;
    margin: 0;
}

.ttr-section-body {
    background: #f9fafb;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    padding: 20px;
}

/* Fields */
.ttr-field {
    margin-bottom: 16px;
}

.ttr-field:last-child {
    margin-bottom: 0;
}

.ttr-estimate-form label {
    font-weight: 600;
    font-size: 13px;
    color: #3d4a5c;
    margin-bottom: 7px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ttr-estimate-form .required {
    color: #ff5e14;
}

.ttr-input,
.ttr-select,
.ttr-textarea {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 15px;
    color: #262e3b;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.ttr-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.ttr-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a6578' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.ttr-input:focus,
.ttr-select:focus,
.ttr-textarea:focus {
    border-color: #ff5e14;
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 94, 20, 0.1);
}

.ttr-input::placeholder,
.ttr-textarea::placeholder {
    color: #a0aab8;
}

/* Service chips */
.ttr-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.ttr-service-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 11px 14px;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0;
    font-weight: 500;
    font-size: 14px;
    color: #3d4a5c;
}

.ttr-service-chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ttr-chip-check {
    width: 22px;
    height: 22px;
    border: 2px solid #d0d7e0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 11px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.ttr-service-chip:hover {
    border-color: #ff5e14;
    background: #fff8f4;
}

.ttr-service-chip input:checked ~ .ttr-chip-text {
    color: #262e3b;
    font-weight: 600;
}

.ttr-service-chip input:checked ~ .ttr-chip-check {
    background: #ff5e14;
    border-color: #ff5e14;
    color: #fff;
}

.ttr-service-chip:has(input:checked) {
    border-color: #ff5e14;
    background: #fff8f4;
}

/* Contact methods */
.ttr-contact-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ttr-contact-option {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    margin: 0;
    transition: all 0.2s;
}

.ttr-contact-option input {
    width: 18px;
    height: 18px;
    accent-color: #ff5e14;
    cursor: pointer;
    flex-shrink: 0;
}

.ttr-contact-label {
    font-size: 15px;
    font-weight: 500;
    color: #3d4a5c;
}

.ttr-contact-option:has(input:checked) {
    border-color: #ff5e14;
    background: #fff8f4;
}

.ttr-contact-option:has(input:checked) .ttr-contact-label {
    color: #262e3b;
    font-weight: 600;
}

/* File upload */
.ttr-file-hint {
    font-size: 13px;
    color: #6c7a8d;
    margin-bottom: 12px;
}

.ttr-file-hint i {
    color: #ff5e14;
    margin-right: 4px;
}

.ttr-file-dropzone {
    display: block;
    cursor: pointer;
    margin: 0;
}

.ttr-file-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
}

.ttr-file-dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff;
    border: 2px dashed #c8d0da;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.2s;
}

.ttr-file-dropzone-inner i {
    font-size: 32px;
    color: #ff5e14;
    margin-bottom: 4px;
}

.ttr-file-dropzone-inner strong {
    font-size: 15px;
    color: #262e3b;
}

.ttr-file-dropzone-inner span {
    font-size: 13px;
    color: #8a96a8;
}

.ttr-file-dropzone:hover .ttr-file-dropzone-inner,
.ttr-file-dropzone:focus-within .ttr-file-dropzone-inner {
    border-color: #ff5e14;
    background: #fff8f4;
}

.ttr-file-names {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #3d4a5c;
    font-weight: 500;
}

/* Consent */
.ttr-consent-section {
    background: #f4f6f8;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 24px;
}

.ttr-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    margin: 0;
}

.ttr-consent-label input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ttr-consent-box {
    width: 24px;
    height: 24px;
    border: 2px solid #c8d0da;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 12px;
    flex-shrink: 0;
    transition: all 0.2s;
    margin-top: 1px;
}

.ttr-consent-text {
    font-size: 14px;
    color: #3d4a5c;
    line-height: 1.5;
}

.ttr-consent-label input:checked ~ .ttr-consent-box {
    background: #ff5e14;
    border-color: #ff5e14;
    color: #fff;
}

/* Submit button */
.ttr-estimate-submit {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 18px 28px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ff5e14 0%, #e54f0a 100%);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 24px rgba(255, 94, 20, 0.4);
    letter-spacing: 0.02em;
    position: relative;
}

.ttr-estimate-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 94, 20, 0.5);
}

.ttr-estimate-submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

.ttr-estimate-submit .ttr-btn-loading {
    display: none;
}

.ttr-estimate-submit.is-loading .ttr-btn-text {
    display: none;
}

.ttr-estimate-submit.is-loading .ttr-btn-loading {
    display: inline;
}

/* Footer */
.ttr-form-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eef1f5;
}

.ttr-form-footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #262e3b;
    color: #d4af37;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.ttr-form-footer p {
    font-size: 14px;
    color: #6c7a8d;
    margin: 0;
}

.ttr-form-footer a {
    color: #ff5e14;
    text-decoration: none;
    font-weight: 600;
}

.ttr-form-footer a:hover {
    text-decoration: underline;
}

.ttr-form-footer .ttr-divider {
    margin: 0 10px;
    color: #c8d0da;
}

/* Landing page */
.ttr-landing-hero {
    padding: 60px 0 80px;
    color: #fff;
}

.ttr-landing-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.ttr-landing-hero-content h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #fff;
    line-height: 1.2;
}

.ttr-landing-hero-content p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 24px;
    line-height: 1.6;
}

.ttr-landing-trust {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.ttr-landing-trust li {
    padding: 7px 0;
    font-size: 15px;
}

.ttr-landing-trust i {
    color: #d4af37;
    margin-right: 10px;
}

.ttr-landing-phone a {
    color: #d4af37;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
}

.ttr-landing-form-card .ttr-estimate-form-wrap {
    margin-top: 0;
}

.ttr-landing-footer-bar {
    background: #1a2332;
    color: #aaa;
    padding: 20px 0;
    font-size: 14px;
}

.ttr-landing-footer-bar a {
    color: #d4af37;
}

/* Responsive */
@media (max-width: 991px) {
    .ttr-landing-hero-content {
        text-align: center;
        margin-bottom: 32px;
    }
    .ttr-landing-hero-content h1 {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .ttr-estimate-form-wrap {
        padding: 24px 18px 20px;
        border-radius: 12px;
    }
    .ttr-form-header {
        flex-direction: column;
        text-align: center;
    }
    .ttr-form-title {
        font-size: 22px;
    }
    .ttr-service-grid {
        grid-template-columns: 1fr;
    }
    .ttr-estimate-intro h2 {
        font-size: 26px;
    }
}

/* Override theme conflicts */
.ttr-estimate-form-wrap .ttr-estimate-form button.ttr-estimate-submit {
    background: linear-gradient(135deg, #ff5e14 0%, #e54f0a 100%) !important;
    color: #fff !important;
    border: none !important;
    width: 100% !important;
    height: auto !important;
    line-height: normal !important;
}

.ttr-estimate-form-wrap input[type="text"],
.ttr-estimate-form-wrap input[type="email"],
.ttr-estimate-form-wrap input[type="tel"],
.ttr-estimate-form-wrap select,
.ttr-estimate-form-wrap textarea {
    height: auto !important;
    box-shadow: none !important;
}
