/* Home immigration search — teal theme (matches booking widget family) */
.imsh-wrap {
    --imsh-accent: #0d9488;
    --imsh-accent-hover: #0f766e;
    --imsh-highlight: #14b8a6;
    --imsh-border: #e2e8f0;
    --imsh-radius: 0.875rem;
}

.imsh-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.35rem;
    padding-left: 0.65rem;
    border-left: 3px solid var(--imsh-highlight);
}

.imsh-heading i { color: #7c3aed; }

.imsh-sub {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 1rem;
    max-width: 44rem;
    line-height: 1.5;
}

.imsh-search-card {
    background: linear-gradient(180deg, #f0fdfa 0%, #fff 100%);
    border: 1px solid var(--imsh-border);
    border-radius: calc(var(--imsh-radius) + 0.15rem);
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.1);
    border-left: 3px solid var(--imsh-highlight);
}

@media (min-width: 640px) {
    .imsh-search-card { padding: 1.15rem 1.25rem; }
}

.imsh-validation {
    display: none;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.85rem;
    border-radius: 0.65rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.875rem;
}

.imsh-validation.is-visible { display: flex; }

.imsh-grid {
    display: grid;
    gap: 0.85rem;
    width: 100%;
}

.imsh-grid--primary {
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
    .imsh-grid--primary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .imsh-grid--primary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.imsh-field label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}

.imsh-field-icon {
    color: var(--imsh-accent);
    font-size: 0.75rem;
    width: 0.9rem;
    text-align: center;
}

.imsh-field input,
.imsh-field select {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.65rem;
    font-size: 0.95rem;
    background: #fff;
}

.imsh-field input:focus,
.imsh-field select:focus {
    outline: none;
    border-color: var(--imsh-accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
}

.imsh-field.is-invalid input,
.imsh-field.is-invalid select {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

.imsh-actions {
    margin-top: 0.85rem;
}

.imsh-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: 0.65rem;
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
}

.imsh-submit:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.imsh-submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.35);
}

.imsh-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.65rem;
}

.imsh-summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #ccfbf1;
    border: 1px solid #5eead4;
    color: #0f766e;
    font-size: 0.8rem;
    font-weight: 600;
}

.imsh-summary-pill--muted {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
    font-weight: 500;
}

.imsh-summary-pill.hidden { display: none; }

.imsh-popular {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e2e8f0;
}

.imsh-popular-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-right: 0.15rem;
}

.imsh-chip {
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid #99f6e4;
    background: #fff;
    color: #0f766e;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
}

.imsh-chip:hover,
.imsh-chip.is-active {
    background: #ccfbf1;
    border-color: var(--imsh-highlight);
}

.imsh-chip:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.25);
}
