/* Teachers & Nannies - Phase 10 responsive safety layer */

html,
body {
    max-width: 100%;
}

img,
video {
    max-width: 100%;
    height: auto;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

input,
select,
textarea {
    min-height: 44px;
}

button,
.btn,
.site-nav a,
.site-nav-link {
    min-height: 44px;
}

.form-grid,
.profile-info-grid,
.dynamic-fields-grid,
.subscription-grid,
.subscription-plans-grid,
.listing-cards-grid,
.cards-grid {
    min-width: 0;
}

.form-grid > *,
.profile-info-grid > *,
.dynamic-fields-grid > *,
.subscription-grid > *,
.subscription-plans-grid > *,
.listing-cards-grid > *,
.cards-grid > * {
    min-width: 0;
}

.admin-table-wrap,
.table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

html[dir="rtl"] .featured-badge {
    right: auto;
    left: 10px;
}

html[dir="ltr"] .featured-badge {
    left: auto;
    right: 10px;
}

@media (max-width: 992px) {
    .checkout-wrap {
        grid-template-columns: 1fr;
    }

    .subscription-plans-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        width: min(100% - 28px, 100%);
    }

    .page-title {
        font-size: clamp(26px, 8vw, 36px);
    }

    .form-grid,
    .profile-info-grid,
    .dynamic-fields-grid,
    .subscription-grid,
    .subscription-plans-grid,
    .listing-cards-grid,
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .btn,
    button[type="submit"] {
        width: 100%;
    }

    .dashboard-page .btn {
        min-width: 0;
    }

    .provider-form,
    .checkout-card,
    .subscription-plan-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 20px, 100%);
    }

    .checkout-card,
    .subscription-plan-card,
    .provider-form {
        padding-inline: 16px;
    }
}
