/*
Theme Name: Mitro Trans
Theme URI: https://mitrotrans.com
Description: Custom WordPress theme for Mitro Trans transportation company
Version: 1.0.0
Author: Agon Karakashi - Codua
Author URI: https://codua.co
License: Proprietary
Text Domain: mitrotrans
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
*/

/* Contact Form 7 Styling */
.wpcf7-form {
    display: grid;
    gap: 1.5rem;
}

.wpcf7-form p {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
    line-height: 1;
}

/* Hide the automatic BR tags that CF7 adds */
.wpcf7-form br {
    display: none;
}

/* Remove extra spacing wrapper */
.wpcf7-form p span.wpcf7-form-control-wrap {
    display: block;
}

/* Mobile: Single column by default */
.wpcf7-form > p {
    grid-column: span 1;
}

/* Desktop: Enable 2-column grid on larger screens (Partner form) */
@media (min-width: 768px) {
    .wpcf7-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Full width fields starting from field 7 (Partner form) */
    .wpcf7-form > p:nth-of-type(n+7) {
        grid-column: 1 / -1;
    }
}

/* Contact form: Single column layout (override 2-column grid) */
.contact-form-wrapper .wpcf7-form {
    grid-template-columns: 1fr;
}

.contact-form-wrapper .wpcf7-form > p {
    grid-column: 1 / -1;
}

/* Style all form inputs, selects, and textareas - Match Figma design */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="email"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    min-height: 2.25rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #0f172a;
    background-color: #f8fafc;
    transition: all 0.15s ease-in-out;
    outline: none;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
    background-color: #ffffff;
}

.wpcf7-form textarea {
    min-height: 8rem;
    resize: vertical;
    padding: 0.5rem 0.75rem;
    line-height: 1.5;
}

/* File upload styling - Match Figma */
.wpcf7-form input[type="file"] {
    width: 100%;
    min-height: 2.25rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.wpcf7-form input[type="file"]:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
    background-color: #ffffff;
}

/* Submit button styling - Match Figma with full width and lg size */
.wpcf7-form input[type="submit"] {
    width: 100%;
    min-height: 2.5rem;
    padding: 0.5rem 1.5rem;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    outline: none;
}

.wpcf7-form input[type="submit"]:hover {
    background: #16a34a;
}

.wpcf7-form input[type="submit"]:focus {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.wpcf7-form input[type="submit"]:active {
    background: #15803d;
}

/* Validation messages */
.wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.wpcf7-response-output {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 0.375rem;
}

.wpcf7-validation-errors {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.wpcf7-mail-sent-ok {
    background-color: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* Loading spinner */
.wpcf7-spinner {
    margin-left: 1rem;
}

/* Theme Custom Styles */
:root {
    --color-primary: #22c55e;
    --color-primary-hover: #16a34a;
}

body {
    background-color: #f9f9fa;
}

/* Button Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(34, 197, 94, 0.2);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    box-shadow: 0 20px 25px -5px rgba(34, 197, 94, 0.3);
}

.btn-outline {
    border: 2px solid;
    background-color: transparent;
}

.btn-outline:hover {
    background-color: white;
}

.btn-lg {
    height: 2.5rem;
    padding: 0 1.5rem;
}

.btn-icon {
    width: 1rem;
    height: 1rem;
}
