/**
 * PropSpace Lead Form Styles
 * Following UI/UX rules with Indigo primary color
 */

.propspace-lead-form-container {
    max-width: 100%;
    margin: 0 auto;
    font-family: "Be Vietnam Pro", Sans-serif;
}

.propspace-lead-form {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease-in-out;
}

.propspace-lead-form:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Agent Card Section */
.propspace-agent-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E2E8F0;
}

.propspace-agent-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #F8FAFC;
}

.propspace-agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.propspace-agent-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.propspace-agent-name {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #0F172A;
    line-height: 1.4;
}

.propspace-agent-name svg {
    color: #475569;
}

.propspace-view-listings {
    color: #262626;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s ease-in-out;
}



/* Form Fields */
.propspace-form-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.propspace-form-field {
    width: 100%;
}

.propspace-form-field input,
.propspace-form-field textarea,
.propspace-form-field select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 14px;
    font-family: "Be Vietnam Pro", Sans-serif;
    color: #0F172A;
    background-color: #FFFFFF;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
}

.propspace-form-field input:focus,
.propspace-form-field textarea:focus,
.propspace-form-field select:focus {
    outline: none;
    border-color: #9d9d9d;
    box-shadow: 0 0 0 3px rgba(157, 157, 157, 0.2);
}

.propspace-phone-input {
    display: flex;
    gap: 8px;
}

.propspace-phone-input select {
    max-width: 90px;
}

@media (max-width: 540px) {
    .propspace-phone-input {
        flex-direction: column;
    }
    
    .propspace-phone-input select {
        max-width: 100%;
    }
}

.propspace-form-field input::placeholder,
.propspace-form-field textarea::placeholder {
    color: #94A3B8;
}

.propspace-form-field textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

/* Form Actions */
.propspace-form-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.propspace-form-actions.propspace-whatsapp-action {
    margin-bottom: 0;
}

.propspace-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 24px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
     font-family: "Be Vietnam Pro", Sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    box-sizing: border-box;
    line-height: 1.4;
}

.propspace-btn-primary {
    background-color: #4E5766;
    color: #FFFFFF;
    flex: 0 0 calc(50% - 6px);
}

.propspace-btn-primary:hover {
    background-color: #4E5766;
}


.propspace-btn-primary:disabled {
    background-color: #94A3B8;
    cursor: not-allowed;
    transform: none;
}

.propspace-btn-secondary {
    background-color: #FFFFFF;
    color: #0F172A;
    border-color: #0F172A;
    flex: 0 0 calc(50% - 6px);
}

.propspace-btn-secondary:hover {
    background-color: #000000;
    border-color: #000000;
    color: #FFFFFF;
}

.propspace-btn-whatsapp {
    flex: 0 0 calc(50% - 6px);
    background-color: #FFFFFF;
    color: #262626;
    border-color: #4E5766;
    gap: 8px;
}

.propspace-btn-whatsapp:hover {
    background-color: #4E5766;
    border-color: #4E5766;
    color: #FFFFFF;
}

.propspace-btn-whatsapp svg {
    flex-shrink: 0;
}

/* Loading State */
.propspace-form.loading .propspace-btn-primary {
    position: relative;
    color: transparent;
}

.propspace-form.loading .propspace-btn-primary::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    border-top-color: transparent;
    animation: propspace-spin 0.6s linear infinite;
}

@keyframes propspace-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .propspace-lead-form {
        padding: 16px;
    }
    
    .propspace-agent-card {
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .propspace-agent-avatar {
        width: 64px;
        height: 64px;
    }
    
    .propspace-agent-name {
        font-size: 16px;
    }
    

    
    .propspace-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .propspace-lead-form {
        padding: 12px;
        border-radius: 8px;
    }
    
    .propspace-agent-avatar {
        width: 56px;
        height: 56px;
    }
    
    .propspace-agent-name {
        font-size: 14px;
    }
}

