/* Form controls shared by the contact form (.field) and the domain / account forms (.dm-field).
   The dm-* and ac-* class names are produced by the page scripts, so they stay stable. */
.field, .dm-field { display: grid; align-content: start; gap: 6px; min-width: 0; }

.field > span, .dm-field > span, .dm-field > label > span {
    font-size: .85rem; font-weight: 600; color: var(--ink-2);
}

.field input, .field select, .field textarea,
.dm-field input, .dm-field select, .dm-field textarea {
    width: 100%; min-width: 0; min-height: 46px; padding: 10px 14px;
    font-size: 1rem; color: var(--ink);
    background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 10px;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea, .dm-field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder, .dm-field input::placeholder, .dm-field textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }

.field input:focus, .field select:focus, .field textarea:focus,
.dm-field input:focus, .dm-field select:focus, .dm-field textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: var(--ring);
}

.field.is-invalid input, .field.is-invalid textarea,
.dm-field.is-invalid input, .dm-field.is-invalid select, .dm-field.is-invalid textarea {
    border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent);
}

.dm-err { font-style: normal; font-size: .8rem; font-weight: 600; color: var(--danger); }

.dm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dm-wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .dm-grid { grid-template-columns: 1fr; } }

/* country code on the left, number on the right, also in Arabic */
.dm-phone { direction: ltr; display: grid; grid-template-columns: 124px 1fr; gap: 8px; }

/* honeypot: invisible to people, bots fill it in */
.dm-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

.dm-form-error {
    margin: 16px 0 0; padding: 12px 14px;
    font-size: .9rem; font-weight: 600; color: var(--danger);
    background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); border-radius: 10px;
}

.dm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 20px; }
.dm-actions .button { flex: 1 1 180px; }
.dm-fineprint { margin: 14px 0 0; font-size: .85rem; line-height: 1.7; color: var(--muted); }

/* search input with a button inside (home page card, domain search page, band) */
.search-box, .dm-search {
    display: flex; align-items: center; gap: 8px; padding: 6px;
    background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 14px;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.search-box:focus-within, .dm-search:focus-within { border-color: var(--primary); box-shadow: var(--ring); }
.search-box input, .dm-search input {
    flex: 1; min-width: 0; padding: 10px 12px; font-size: 1.05rem;
    color: var(--ink); background: transparent; border: 0; outline: none;
}
.search-box .button, .dm-search .button { flex: none; }

@media (max-width: 480px) {
    .search-box, .dm-search { flex-wrap: wrap; }
    .search-box input, .dm-search input { flex-basis: 100%; }
    .search-box .button, .dm-search .button { flex: 1; }
}
