/* Custom Project Inquiry Form - Frontend Styles */

.cpif-form-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.cpif-form {
    display: flex;
    flex-direction: column;
}

.cpif-form-group {
    margin-bottom: 20px;
}

.cpif-form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cpif-form-col {
    flex: 1;
    min-width: 200px;
}

.cpif-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.cpif-required {
    color: #d32f2f;
    margin-left: 3px;
}

.cpif-input,
.cpif-textarea,
.cpif-file-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.cpif-input:focus,
.cpif-textarea:focus,
.cpif-file-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.cpif-textarea {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
}

.cpif-file-input {
    padding: 10px;
    cursor: pointer;
}

.cpif-help-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    margin-bottom: 0;
}

.cpif-photo-preview {
    padding: 15px;
    background-color: #fff;
    border: 1px dashed #ddd;
    border-radius: 4px;
    text-align: center;
}

.cpif-photo-preview img {
    display: inline-block;
}

.cpif-form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 30px;
}

.cpif-button {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.cpif-button-primary {
    background-color: #d32f2f;
    color: white;
}

.cpif-button-primary:hover {
    background-color: #b71c1c;
}

.cpif-button-secondary {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.cpif-button-secondary:hover {
    background-color: #e0e0e0;
}

.cpif-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cpif-message {
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.cpif-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.cpif-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.cpif-message.info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.g-recaptcha {
    margin: 20px 0;
}

/* Responsive design */
@media (max-width: 600px) {
    .cpif-form-container {
        padding: 20px;
        margin: 20px 10px;
    }
    
    .cpif-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .cpif-form-col {
        min-width: auto;
    }
    
    .cpif-form-actions {
        flex-direction: column;
    }
    
    .cpif-button {
        width: 100%;
        text-align: center;
    }
}
