/* Contact Form Styling */
.pcp-contact-form-wrapper {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pcp-contact-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pcp-contact-form-header h2 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.pcp-contact-form-header p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.5;
}

.pcp-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.pcp-contact-submit {
    background: #0073aa;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pcp-contact-submit:hover:not(:disabled) {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.pcp-contact-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pcp-contact-response {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

.pcp-contact-response.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pcp-contact-response.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.pcp-response-message {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pcp-contact-form-wrapper {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .pcp-contact-form-header h2 {
        font-size: 1.5rem;
    }
    
    .pcp-contact-form-header p {
        font-size: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .pcp-contact-submit {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .pcp-contact-form-wrapper {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .pcp-contact-form {
        gap: 1rem;
    }
    
    .pcp-contact-submit {
        width: 100%;
    }
}

/* Loading State */
.pcp-contact-submit:disabled {
    position: relative;
}

.pcp-contact-submit:disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility Improvements */
.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.pcp-contact-submit:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .pcp-contact-form-wrapper {
        border: 2px solid #000;
    }
    
    .form-group input,
    .form-group textarea {
        border-width: 2px;
    }
    
    .pcp-contact-submit {
        border: 2px solid #000;
    }
}

/* Print Styles */
@media print {
    .pcp-contact-form-wrapper {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .pcp-contact-submit {
        display: none;
    }
}
