/**
 * Property Appraisal Form Styles
 * 
 * Minimal base styles - designed to inherit from theme.
 * Override these in your theme's CSS as needed.
 */

/* Form wrapper */
.paf-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

.paf-form {
    position: relative;
}

/* Field groups */
.paf-field-group {
    margin-bottom: 15px;
}

.paf-field-group:last-child {
    margin-bottom: 0;
}

/* Inputs */
.paf-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    line-height: 1.4;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.paf-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.paf-input.paf-error {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

/* Submit button */
.paf-submit-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #0073aa;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.paf-submit-btn:hover {
    background-color: #005a87;
}

.paf-submit-btn:disabled {
    background-color: #999;
    cursor: not-allowed;
}

/* Steps */
.paf-step {
    display: none;
}

.paf-step.paf-active {
    display: block;
}

.paf-step-address {
    display: block;
}

.paf-step-contact {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Success message */
.paf-step-success {
    display: none;
}

.paf-success-message {
    padding: 20px;
    text-align: center;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
}

.paf-success-message p {
    margin: 0;
}

/* Error message */
.paf-error-message {
    padding: 12px 15px;
    margin-bottom: 15px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    font-size: 14px;
}

/* Radio buttons */
.paf-radio-group {
    padding: 10px 0;
}

.paf-radio-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.paf-radio-options {
    display: flex;
    gap: 20px;
}

.paf-radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: normal;
}

.paf-radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.paf-radio-group.paf-error .paf-radio-label {
    color: #dc3545;
}

/* Loading indicator */
.paf-loading {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 10;
    justify-content: center;
    align-items: center;
}

.paf-loading.paf-active {
    display: flex;
}

.paf-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: paf-spin 1s linear infinite;
}

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

/* Google Places Autocomplete dropdown - ensure it appears above other elements */
.pac-container {
    z-index: 100000 !important;
}

/* Screen reader only text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .paf-input,
    .paf-submit-btn {
        padding: 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}
