/**
 * PU Contact Form - Frontend Styles
 */

.pucf-form-wrapper {
    max-width: 100%;
}

.pucf-form {
    position: relative;
}

.pucf-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.pucf-row-full {
    flex-direction: column;
}

.pucf-col {
    flex: 1;
}

.pucf-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.pucf-required {
    color: #e53935;
}

.pucf-input,
.pucf-select,
.pucf-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.pucf-input:focus,
.pucf-select:focus,
.pucf-textarea:focus {
    border-color: #045798;
    outline: none;
    box-shadow: 0 0 0 4px rgba(4, 87, 152, 0.1);
}

.pucf-input.pucf-error,
.pucf-textarea.pucf-error {
    border-color: #e53935;
}

.pucf-error-text {
    color: #e53935;
    font-size: 13px;
    margin-top: 5px;
}

.pucf-textarea {
    resize: vertical;
    min-height: 120px;
}

.pucf-file {
    width: 100%;
    padding: 10px;
    border: 2px dashed #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: pointer;
}

.pucf-file:hover {
    border-color: #045798;
    background: #f0f7ff;
}

.pucf-hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.pucf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 40px;
    background: linear-gradient(135deg, #045798, #0070c9);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.pucf-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4, 87, 152, 0.4);
}

.pucf-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.pucf-spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pucf-spinner svg {
    animation: pucf-spin 1s linear infinite;
}

@keyframes pucf-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.pucf-required-note {
    font-size: 13px;
    color: #666;
    margin-top: 15px;
}

/* Message Styles */
.pucf-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.pucf-message.pucf-success {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pucf-message.pucf-error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.pucf-message::before {
    font-size: 20px;
}

.pucf-message.pucf-success::before {
    content: '✓';
}

.pucf-message.pucf-error::before {
    content: '✕';
}

/* Responsive */
@media (max-width: 768px) {
    .pucf-row {
        flex-direction: column;
        gap: 15px;
    }

    .pucf-button {
        width: 100%;
    }
}