/**
 * Tim Truett Agency Forms - Styles
 * Professional form styling with blue borders and Poppins font
 */

/* Form Container */
.tt-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Poppins', sans-serif;
}

.tt-form-wrapper {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
}

/* Form Title & Subtitle */
.tt-form-title {
    color: #003da5;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

.tt-form-subtitle {
    color: #555555;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    font-family: 'Poppins', sans-serif;
}

/* Form Structure */
.tt-form {
    width: 100%;
}

.tt-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.tt-form-group {
    margin-bottom: 25px;
    width: 100%;
}

.tt-form-half {
    flex: 1;
    min-width: 0;
}

/* Labels */
.tt-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
}

.required {
    color: #A7062C;
}

/* Input Fields */
.tt-input,
.tt-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    color: #333333;
    background-color: #ffffff;
    border: 2px solid #78a9fb !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.tt-input:focus,
.tt-textarea:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 3px rgba(0, 61, 165, 0.1);
}

.tt-input::placeholder,
.tt-textarea::placeholder {
    color: #999999;
}

/* Select Dropdown */
select.tt-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23003da5' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Textarea */
.tt-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit Button */
.tt-submit-btn {
    background-color: #A7062C;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    padding: 16px 40px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(227, 30, 36, 0.2);
}

.tt-submit-btn:hover {
    background-color: #003087;
    box-shadow: 0 6px 12px rgba(227, 30, 36, 0.3);
    transform: translateY(-2px);
}

.tt-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(227, 30, 36, 0.2);
}

.tt-submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Form Messages */
.tt-form-message {
    padding: 15px 20px;
    margin-top: 20px;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
}

.tt-form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tt-form-message.error {
    background-color: #f8d7da;
    color: #A7062C;
    border: 1px solid #f5c6cb;
}

/* Loading State */
.tt-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tt-form-wrapper {
        padding: 30px 20px;
    }
    
    .tt-form-title {
        font-size: 26px;
    }
    
    .tt-form-subtitle {
        font-size: 14px;
    }
    
    .tt-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .tt-form-half {
        width: 100%;
    }
    
    .tt-submit-btn {
        width: 100%;
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .tt-form-container {
        padding: 10px;
    }
    
    .tt-form-wrapper {
        padding: 20px 15px;
    }
    
    .tt-form-title {
        font-size: 22px;
    }
    
    .tt-input,
    .tt-textarea {
        padding: 12px 14px;
        font-size: 14px;
    }
}

/* Validation Styles */
.tt-input.error,
.tt-textarea.error {
    border-color: #e74c3c;
}

.tt-input.error:focus,
.tt-textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Date Input Styling */
input[type="date"].tt-input {
    cursor: pointer;
}

input[type="date"].tt-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(16%) sepia(98%) saturate(2940%) hue-rotate(210deg) brightness(94%) contrast(101%);
}

/* Accessibility */
.tt-input:focus-visible,
.tt-textarea:focus-visible,
.tt-submit-btn:focus-visible {
    outline: 3px solid #003da5;
    outline-offset: 2px;
}
input#quote_coverage_details {
    padding: 10px;
}
input#quote_email {
    padding: 10px;
}
input#quote_phone {
    padding: 10px;
}

input#quote_last_name {
    padding: 10px;
}
input#quote_first_name {
    padding: 10px;
}
input#appt_first_name {
    padding: 10px;
}
input#appt_email {
    padding: 10px;
}
input#appt_last_name {
    padding: 10px;
}
input#appt_first_name {
    padding: 10px;
}
input#appt_phone {
	padding: 10px;
}

/* Anti-spam honeypot field - hidden from users but visible to bots */
.tt-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}