/* Planning Support Form - Frontend Styles */

.psf-form-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.psf-form-title {
    margin: 0 0 15px;
    color: #333;
    font-size: 28px;
    font-weight: 600;
}

.psf-form-description {
    margin: 0 0 30px;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.psf-form-group {
    margin-bottom: 25px;
}

.psf-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.psf-col-half {
    flex: 1;
    margin-bottom: 0;
}

.psf-label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 15px;
}

.psf-label .required {
    color: #dc3545;
    font-weight: normal;
}

.psf-input,
.psf-textarea,
.psf-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    background: #fff;
    transition: border-color 0.3s ease;
}

.psf-input:focus,
.psf-textarea:focus,
.psf-select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

.psf-input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

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

.psf-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.5;
}

.psf-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 3px;
    cursor: pointer;
}

.psf-checkbox-label a {
    color: #007cba;
    text-decoration: underline;
}

.psf-checkbox-label a:hover {
    color: #005a87;
}

.psf-submit-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #007cba;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.psf-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.psf-spinner {
    display: inline-block;
    margin-left: 15px;
    color: #666;
}

.psf-messages {
    margin-top: 20px;
}

.psf-message {
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.5;
}

.psf-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.psf-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.psf-message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive styles */
@media (max-width: 768px) {
    .psf-form-container {
        padding: 20px;
        margin: 20px;
    }
    
    .psf-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .psf-col-half {
        margin-bottom: 25px;
    }
    
    .psf-form-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .psf-form-container {
        padding: 15px;
        margin: 15px;
    }
    
    .psf-submit-btn {
        width: 100%;
        text-align: center;
    }
}

/* Loading state */
.psf-form.psf-loading {
    opacity: 0.6;
    pointer-events: none;
}

.psf-form.psf-loading .psf-spinner {
    display: inline-block;
}

/* Validation styles */
.psf-input.psf-error,
.psf-textarea.psf-error,
.psf-select.psf-error {
    border-color: #dc3545;
}

.psf-error-message {
    display: block;
    margin-top: 5px;
    color: #dc3545;
    font-size: 13px;
}

/* Success animation */
@keyframes psf-success-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.psf-message-success {
    animation: psf-success-pulse 0.5s ease;
}
