/* =========================================
   Form Estimates — Base Form Styles
   ========================================= */

/* Form wrapper */
.fe-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

/* Form groups */
.fe-form-group {
    margin-bottom: 1.2em;
}

.fe-form-group label {
    display: block;
    margin-bottom: 0.3em;
    font-weight: 600;
}

.fe-required {
    color: #e74c3c;
}

/* Inputs */
.fe-form-group input[type="text"],
.fe-form-group input[type="email"],
.fe-form-group input[type="tel"],
.fe-form-group textarea,
.fe-form-group input[type="file"] {
    width: 100%;
    padding: 0.6em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

/* intl-tel-input overrides */
.fe-form-group .iti {
    width: 100%;
}

.fe-form-group .iti input[type="tel"] {
    padding-left: 52px;
}

.fe-form-group textarea {
    resize: vertical;
}

/* Input error state */
.fe-input-error {
    border-color: #e74c3c !important;
}

/* Field error text */
.fe-field-error {
    color: #e74c3c;
    font-size: 0.85em;
    margin-top: 0.3em;
    display: none;
}

/* Form hints */
.fe-form-hint {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 0.3em;
}

/* Form title */
.fe-form-title {
    text-align: center;
    margin-bottom: 1.2em;
}

/* Legal disclaimer */
.fe-legal-disclaimer {
    margin-top: 10px;
}

.fe-legal-disclaimer p {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

.fe-legal-disclaimer a {
    color: inherit;
    text-decoration: underline;
}

/* Text Us section */
.fe-text-us-section {
    text-align: center;
    margin-top: 1.5em;
}

.fe-text-us-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 1.5em 0 1em;
}

.fe-text-us-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5em;
}

.fe-text-us-phone a {
    font-size: 1.15em;
    font-weight: 700;
    color: #0d6e6e;
    text-decoration: none;
}

.fe-text-us-phone a:hover {
    text-decoration: underline;
}

/* Photo previews */
.fe-photo-previews-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.fe-photo-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.fe-photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fe-remove-preview-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    padding: 0;
}

.fe-remove-preview-btn:hover {
    background: #e74c3c;
}

/* Honeypot */
.fe-honeypot {
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Submit button */
.fe-form-submit {
    margin-top: 1.5em;
}

.fe-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.8em 2em;
    font-size: 1em;
    font-weight: 700;
    color: #fff;
    background: #2c3e50;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
    min-width: 180px;
}

.fe-submit-btn:hover {
    background: #34495e;
}

.fe-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loader spinner */
.fe-button-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fe-spin 0.7s linear infinite;
}

.fe-is-loading .fe-button-loader {
    display: inline-block;
}

@keyframes fe-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Inline messages */
.fe-form-message {
    padding: 1em;
    border-radius: 4px;
    margin-bottom: 1em;
    font-weight: 500;
}

.fe-msg-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.fe-msg-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Modal */
.fe-message-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.fe-modal-visible {
    display: flex;
}

.fe-modal-content {
    background: #fff;
    padding: 2em 2.5em;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.fe-modal-success {
    border-top: 4px solid #27ae60;
}

.fe-modal-error {
    border-top: 4px solid #e74c3c;
}

.fe-modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
}

.fe-modal-close-btn:hover {
    color: #333;
}