/* HomeSAE Lead Form Styles - Clean Modern Design */
.homesae-lead-form-container {
    max-width: 100%;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #FFFFFF;
}

.homesae-form-wrapper {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 0;
}

.homesae-form-group {
    margin-bottom: 10px;
}

.homesae-form-group:last-of-type {
    margin-bottom: 30px;
}

/* Input with Icon */
.homesae-input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.homesae-input-icon {
    position: absolute;
    left: 12px;
    font-size: 16px;
    color: #6B7280;
    z-index: 2;
    pointer-events: none;
    width: 16px;
    height: 16px;
    display: inline-block;
}

/* User Icon */
.homesae-user-icon::before {
    content: "";
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z'/%3E%3C/svg%3E") no-repeat center;
    background-size: 16px 16px;
    display: block;
}

/* Email Icon */
.homesae-email-icon::before {
    content: "";
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 8l7.89 4.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z'/%3E%3C/svg%3E") no-repeat center;
    background-size: 16px 16px;
    display: block;
}

/* Building Icon */
.homesae-building-icon::before {
    content: "";
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4'/%3E%3C/svg%3E") no-repeat center;
    background-size: 16px 16px;
    display: block;
}

/* Bed Icon */
.homesae-bed-icon::before {
    content: "";
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 7v10a2 2 0 002 2h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2zM3 7h4M7 3v4M7 7h10M17 3v4M3 11h18M3 15h18M3 19h18'/%3E%3C/svg%3E") no-repeat center;
    background-size: 16px 16px;
    display: block;
}

.homesae-input-with-icon input {
    padding-left: 45px;
    padding-right: 12px;
}

/* Phone Input with Country Selector */
.homesae-phone-input {
    display: flex;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    overflow: hidden;
}

.homesae-country-selector {
    display: flex;
    align-items: center;
    padding: 0;
    background: #F9FAFB;
    border-right: 1px solid #D1D5DB;
    max-width: 80px;
    position: relative;
}

.homesae-country-dropdown {
    width: 100%;
    padding: 6px 12px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    appearance: none;
    outline: none;
    padding-right: 30px;
}

.homesae-country-dropdown:focus {
    outline: none;
    background: #FFFFFF;
}

.homesae-country-dropdown option {
    padding: 8px;
    background: #FFFFFF;
    color: #374151;
    font-size: 14px;
}
.homesae-phone-input input{
    border: none !important;
}
/* Ensure dropdown shows full country names */
.homesae-country-dropdown option:not(:checked) {
    /* Full country names in dropdown */
}

/* Custom dropdown arrow */
.homesae-country-selector::after {
    content: "▼";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #6B7280;
    pointer-events: none;
}

.homesae-phone-input input {
    flex: 1;
    border: none;
    padding: 12px;
    font-size: 14px;
    outline: none;
    background: transparent;
}

/* Select Wrapper */
.homesae-select-wrapper {
    position: relative;
}

.homesae-select-wrapper select {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    background: #FFFFFF;
    appearance: none;
    cursor: pointer;
}

.homesae-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #6B7280;
    pointer-events: none;
}

/* Basic Input Styles */
.homesae-form-group input,
.homesae-form-group textarea {
    width: 100%;
    padding: 6px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    background: #FFFFFF;
    transition: all 150ms ease-in-out;
    box-sizing: border-box;
}

.homesae-form-group input:focus,
.homesae-form-group textarea:focus {
    outline: none;
    border-color: #000;
}

/* Ensure icons don't interfere with input */
.homesae-input-with-icon input:focus ~ .homesae-input-icon,
.homesae-input-with-icon input:not(:placeholder-shown) ~ .homesae-input-icon {
    opacity: 0.7;
}

/* Icon hover states */
.homesae-input-with-icon:hover .homesae-input-icon {
    opacity: 0.8;
}

.homesae-form-group input::placeholder,
.homesae-form-group textarea::placeholder {
    color: #9CA3AF;
}

.homesae-form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* Specific fixes for icon positioning */
.homesae-input-with-icon input[type="number"] {
    padding-left: 45px;
}

.homesae-input-with-icon input[type="email"] {
    padding-left: 45px;
}

.homesae-input-with-icon input[type="text"] {
    padding-left: 45px;
}


/* Form Actions */
.homesae-form-actions {
    text-align: center;

}

.homesae-submit-btn {
    background: #000000;
    color: #FFFFFF;
    border: none;
    padding: 6px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 150ms ease-in-out;
    width: 100%;
    text-align: center;
}

.homesae-submit-btn:hover {
    background: #333333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.homesae-submit-btn:disabled {
    background: #6B7280;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.homesae-submit-btn .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.homesae-submit-btn .btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #FFFFFF;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Messages */
.homesae-messages {
    margin-top: 16px;
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
}

.homesae-messages.success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #10B981;
}

.homesae-messages.error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #EF4444;
}

.homesae-messages ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {


    
    .homesae-form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .homesae-form-title {
        font-size: 24px;
    }
    
    .homesae-form-section h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {

    .homesae-form-title {
        font-size: 20px;
    }
}


/* Form validation styles */
.homesae-form-group input.error,
.homesae-form-group select.error,
.homesae-form-group textarea.error {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Bootstrap-style error messages */
.homesae-form-group .error-message {
    margin-top: 8px;
    font-size: 14px;
}

.homesae-form-group .error-message.alert {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid;
    margin-bottom: 0;
}

.homesae-form-group .error-message.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.homesae-form-group .error-message .btn-close {
    padding: 0.75rem 1rem;
    margin: -0.75rem -1rem -0.75rem auto;
}

.homesae-form-group .error-message .fas {
    font-size: 16px;
}

/* Bootstrap alert styles for form messages */
#homesae-form-messages .alert {
    border-radius: 8px;
    border: 1px solid;
    margin-bottom: 16px;
}

#homesae-form-messages .alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

#homesae-form-messages .alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

#homesae-form-messages .alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

#homesae-form-messages .alert-info {
    color: #055160;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

#homesae-form-messages .alert .fas {
    font-size: 18px;
}

#homesae-form-messages .alert .btn-close {
    padding: 0.75rem 1rem;
    margin: -0.75rem -1rem -0.75rem auto;
}
