/* Valuation Form Styles - Standalone CSS (No Tailwind) */

/* Container */
.valuation-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.valuation-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.valuation-form h2 {
    margin: 0 0 25px 0;
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
}

.valuation-form h3 {
    margin: 20px 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
}

.form-section h3 {
    margin-top: 0;
}

/* Labels */
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}

.form-label.required::after {
    content: " *";
    color: #e74c3c;
}

.help-text {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Input Fields */
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-input.input-error,
.form-textarea.input-error,
.form-select.input-error {
    border-color: #e74c3c;
}

.form-input.input-error:focus,
.form-textarea.input-error:focus,
.form-select.input-error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.radio-label:hover {
    background: #f8f9fa;
    border-color: #3498db;
}

.radio-label:has(.radio-input:checked) {
    background: #e8f4fd;
    border-color: #3498db;
}

.radio-input {
    margin: 0 12px 0 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-label span {
    flex: 1;
}

/* Error Messages */
.error-message {
    display: block;
    margin-top: 6px;
    color: #e74c3c;
    font-size: 14px;
}

/* Success Message */
.success-message {
    background: #d4edda;
    border: 2px solid #c3e6cb;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.success-message h3 {
    margin: 0 0 15px 0;
    color: #155724;
    font-size: 24px;
}

.success-message p {
    margin: 10px 0;
    color: #155724;
    font-size: 16px;
}

.success-message strong {
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: #3498db;
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-primary:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary {
    background: #95a5a6;
    color: #fff;
}

.btn-secondary:hover:not(:disabled) {
    background: #7f8c8d;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 18px;
}

.btn-link {
    background: none;
    border: none;
    color: #3498db;
    text-decoration: underline;
    padding: 8px 0;
    cursor: pointer;
    font-size: 14px;
}

.btn-link:hover {
    color: #2980b9;
}

/* Form Actions */
.form-actions {
    margin-top: 30px;
    text-align: center;
}

/* Postcode Lookup Specific Styles */
.postcode-lookup {
    margin: 15px 0;
}

.postcode-input-group {
    display: flex;
    gap: 10px;
}

.postcode-input-group .form-input {
    flex: 1;
}

.postcode-input-group .btn {
    white-space: nowrap;
}

.manual-entry-toggle {
    margin: 15px 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .valuation-form-container {
        padding: 15px;
    }

    .valuation-form {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .valuation-form h2 {
        font-size: 24px;
    }

    .postcode-input-group {
        flex-direction: column;
    }

    .radio-group {
        gap: 10px;
    }

    .btn-lg {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .valuation-form {
        padding: 15px;
    }

    .form-section {
        padding: 15px;
    }

    .success-message {
        padding: 20px;
    }

    .success-message h3 {
        font-size: 20px;
    }
}

/* Loading States */
[wire\:loading] {
    opacity: 0.6;
}

/* Only show wait cursor when button is actually disabled/loading */
button:disabled {
    cursor: wait;
}

button[wire\:loading] {
    cursor: wait;
}

/* Accessibility */
.form-input:focus-visible,
.form-textarea:focus-visible,
.form-select:focus-visible,
.radio-input:focus-visible,
.btn:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}
