/* Frontend CSS for Trained Professionals Plugin */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700&display=swap');

/* Form Styling */
.tp-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(34, 113, 177, 0.15);
    font-family: 'Heebo', sans-serif;
}

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

.tp-form-row .tp-form-group {
    flex: 1;
    margin-bottom: 0;
}

.tp-form-group {
    margin-bottom: 20px;
}

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

.tp-form-group input[type="text"],
.tp-form-group input[type="tel"],
.tp-form-group input[type="email"],
.tp-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.tp-form-group input:focus,
.tp-form-group textarea:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 2px rgba(34,113,177,0.2);
}

.tp-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.tp-checkbox-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.tp-small-text {
    font-size: 13px;
    color: #666;
    margin-top: -5px;
    margin-bottom: 10px;
}

.tp-btn {
    background: #2271b1;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.tp-btn:hover {
    background: #135e96;
}

/* Directory Grid Styling (Bento Grid Style) */
.tp-directory-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Heebo', sans-serif;
}

.tp-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(34, 113, 177, 0.1);
}

.tp-filters input, .tp-filters select {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
}

.tp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.tp-card-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(34, 113, 177, 0.12);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tp-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(34, 113, 177, 0.2);
}

.tp-card-header {
    border-bottom: 1px solid #f0f0f1;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.tp-card-header h3 {
    margin: 0 0 5px 0;
    font-size: 26px;
    color: #084355;
    font-weight: 700;
    font-family: 'Heebo', sans-serif;
}

.tp-city {
    color: #00A6A9;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tp-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tp-courses, .tp-regions {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 10px;
}

.tp-courses strong, .tp-regions strong {
    color: #333;
}

.tp-btn-outline {
    margin-top: auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: #00A6A9;
    color: #ffffff;
    border: 2px solid #00A6A9;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 22px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tp-btn-outline:hover {
    background: #ffffff;
    color: #00A6A9;
}

.tp-btn-outline .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media(max-width: 768px) {
    .tp-form-row {
        flex-direction: column;
    }
    .tp-filters {
        flex-direction: column;
    }
}
