/* Painting Contact Form - Frontend Styles */

.pcf-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.pcf-form {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.pcf-form h1,
.pcf-form h2,
.pcf-form h3 {
    color: #7e0d0d;
}

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

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

.pcf-form-group.pcf-half {
    flex: 1;
    margin-bottom: 0;
}

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

.pcf-form input[type="text"],
.pcf-form input[type="email"],
.pcf-form input[type="tel"],
.pcf-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.pcf-form input[type="text"]:focus,
.pcf-form input[type="email"]:focus,
.pcf-form input[type="tel"]:focus,
.pcf-form textarea:focus {
    outline: none;
    border-color: #7e0d0d;
    box-shadow: 0 0 0 3px rgba(126, 13, 13, 0.1);
}

.pcf-form input[type="text"]:hover,
.pcf-form input[type="email"]:hover,
.pcf-form input[type="tel"]:hover,
.pcf-form textarea:hover {
    border-color: #999;
}

/* Checkbox Styles */
.pcf-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pcf-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    user-select: none;
    margin-bottom: 0;
}

.pcf-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 24px;
    width: 24px;
    background-color: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pcf-checkbox:hover input ~ .checkmark {
    border-color: #7e0d0d;
}

.pcf-checkbox input:checked ~ .checkmark {
    background-color: #7e0d0d;
    border-color: #7e0d0d;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.pcf-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.pcf-checkbox .checkmark:after {
    left: 8px;
    top: 4px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Word Count */
.pcf-word-count {
    display: block;
    text-align: right;
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.pcf-word-count.warning {
    color: #f39c12;
}

/* Submit Button */
.pcf-submit-btn {
    background: #7e0d0d;
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pcf-submit-btn:hover {
    background: #5a0a0a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(126, 13, 13, 0.3);
}

.pcf-submit-btn:active {
    transform: translateY(0);
}

.pcf-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Messages */
.pcf-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    display: none;
    font-weight: 500;
}

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

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

.pcf-error {
    color: #dc3545;
    font-size: 13px;
    display: none;
    margin-top: 5px;
}

.pcf-error.show {
    display: block;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .pcf-form {
        padding: 25px;
    }
    
    .pcf-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .pcf-form-group.pcf-half {
        margin-bottom: 20px;
    }
    
    .pcf-checkbox-group {
        gap: 15px;
    }
    
    .pcf-checkbox {
        font-size: 15px;
    }
    
    .pcf-submit-btn {
        font-size: 16px;
        padding: 14px 30px;
    }
}

@media screen and (max-width: 480px) {
    .pcf-form-container {
        padding: 10px;
    }
    
    .pcf-form {
        padding: 20px;
    }
    
    .pcf-form input[type="text"],
    .pcf-form input[type="email"],
    .pcf-form input[type="tel"],
    .pcf-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .checkmark {
        height: 22px;
        width: 22px;
    }
    
    .pcf-checkbox .checkmark:after {
        left: 7px;
        top: 3px;
    }
}

/* Loading State */
.pcf-submit-btn.loading {
    position: relative;
    color: transparent;
}

.pcf-submit-btn.loading:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: pcf-spin 1s linear infinite;
}

@keyframes pcf-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
