/* Form Immobile CSS */
.nestup-immobile-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.nestup-form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.nestup-form-header h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
}

.nestup-form-header p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.nestup-form-fields {
    margin-bottom: 25px;
}

.nestup-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.nestup-form-row .nestup-form-field {
    flex: 1;
}

.nestup-form-field {
    margin-bottom: 20px;
}

.nestup-form-field .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.post-type-archive-immobile .nestup-form-field .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #1f2937;
    background-color: #ffffff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
}

.nestup-form-field .form-control:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.nestup-form-field .form-control::placeholder {
    color: #9ca3af;
}

.nestup-form-field textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.nestup-form-consents {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.nestup-form-consents .nestup-form-field {
    margin-bottom: 15px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-check-input {
    margin: 0;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #6366f1;
}

.form-check-label {
    font-size: 13px;
    line-height: 1.5;
    color: #4b5563;
    margin: 0;
    cursor: pointer;
}

.form-check-label a {
    color: #6366f1;
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

.nestup-form-submit {
    text-align: center;
    margin-top: 30px;
}

.nestup-btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    min-width: 160px;
}

.nestup-btn-primary {
    background-color: #6366f1;
    color: #ffffff;
}

.nestup-btn-primary:hover {
    background-color: #5856eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.nestup-btn-primary:active {
    transform: translateY(0);
}

.nestup-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.nestup-error-message {
    color: #dc2626;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.nestup-error-message.show {
    display: block;
}

.nestup-form-field.error .form-control {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.nestup-form-success,
.nestup-form-error {
    margin-top: 20px;
}

.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.alert p {
    margin: 0;
    font-size: 14px;
}

.alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-success h4 {
    color: #15803d;
}

.alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-danger h4 {
    color: #dc2626;
}

/* reCAPTCHA styling */
.g-recaptcha {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.nestup-recaptcha-error {
    text-align: center;
}

/* Stili per la modale */
.nestup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.nestup-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.nestup-modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    margin: 5vh auto;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nestup-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
    background: #f8f9fa;
}

.nestup-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.nestup-modal-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nestup-modal-close:hover {
    background: #e9ecef;
    color: #333;
}

.nestup-modal-body {
    padding: 24px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

.nestup-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.nestup-error {
    text-align: center;
    padding: 40px 20px;
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .nestup-immobile-form-wrapper {
        margin: 0 15px;
        padding: 20px 15px;
    }
    
    .nestup-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .nestup-form-header h3 {
        font-size: 20px;
    }
    
    .nestup-btn {
        width: 100%;
        padding: 16px 20px;
    }
    
    /* Responsive per la modale */
    .nestup-modal-content {
        width: 95%;
        margin: 2vh auto;
        max-height: 96vh;
    }
    
    .nestup-modal-header {
        padding: 16px 20px;
    }
    
    .nestup-modal-body {
        padding: 20px;
        max-height: calc(96vh - 70px);
    }
}

@media (max-width: 480px) {
    .nestup-immobile-form-wrapper {
        margin: 0 10px;
        padding: 15px;
    }
    
    .nestup-form-field .form-control {
        padding: 10px 12px;
    }
    
    .form-check-label {
        font-size: 12px;
    }
} 