/* TNG Enquiry Form Styles */

.tng-enquiry-form-wrapper {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f8f8f8;
    border-radius: 8px;
}

.tng-enquiry-title {
    margin: 0 0 1.5rem;
    font-size: 1.75rem;
    color: #333;
    text-align: center;
}

/* Messages */
.tng-enquiry-message {
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.tng-enquiry-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.tng-enquiry-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.tng-enquiry-message p,
.tng-enquiry-message ul {
    margin: 0;
}

.tng-enquiry-message ul {
    padding-left: 1.5rem;
}

/* Form */
.tng-enquiry-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tng-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.tng-form-field {
    display: flex;
    flex-direction: column;
}

.tng-form-field-full {
    grid-column: 1 / -1;
}

.tng-form-field label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.tng-form-field .required {
    color: #dc3545;
}

.tng-form-field input[type="text"],
.tng-form-field input[type="email"],
.tng-form-field input[type="tel"],
.tng-form-field textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.tng-form-field input:focus,
.tng-form-field textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.tng-form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.tng-form-submit {
    text-align: center;
    margin-top: 0.5rem;
}

.tng-submit-button {
    padding: 0.875rem 2.5rem;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tng-submit-button:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tng-submit-button:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .tng-enquiry-form-wrapper {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .tng-form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tng-enquiry-title {
        font-size: 1.5rem;
    }
    
    .tng-submit-button {
        width: 100%;
        padding: 1rem;
    }
}

/* Loading state (optional) */
.tng-enquiry-form.loading .tng-submit-button {
    opacity: 0.6;
    cursor: not-allowed;
}

.tng-enquiry-form.loading .tng-submit-button::after {
    content: '...';
    animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}
