/* ═══════════════════════════════════════════════════════
   LayoutGeneral.css — Styles for the public-facing layout
════════════════════════════════════════════════════════ */

/* ── Floating Contact Buttons ── */
.mobile-call {
    position: fixed; left: 1px; bottom: 10px;
    height: 55px; width: 40px;
    background-color: transparent;
    border-top-right-radius: 2.7em; border-bottom-left-radius: 2.8em;
    margin: auto; margin-left: 10px; color: green; z-index: 1;
}
.whatsapp-msg {
    position: fixed; left: 40px; bottom: 25px;
    height: 40px; width: 35px;
    background-color: transparent;
    border-top-right-radius: 2.7em; border-bottom-left-radius: 2.8em;
    margin: auto; margin-left: 10px; color: green; z-index: 1;
}
.la-3x { font-size: 2em; }

/* ═══════════════════════════════════════════════════════
   MODAL STYLES
════════════════════════════════════════════════════════ */
.tm-social-row {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.tm-social-row li {
    margin: 0;
    padding: 0;
}

.tm-social-row form {
    margin: 0;
    padding: 0;
}

.tm-social-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: opacity 0.2s, transform 0.2s;
}

.tm-social-circle:hover {
    opacity: 0.85;
    transform: scale(1.08);
}

/* ── Scoping ── */
.tm-modal .modal-dialog        { max-width: 480px; }
.tm-modal.tm-modal-lg-custom .modal-dialog { max-width: 900px; }

/* ── Backdrop ── */
.modal-backdrop { backdrop-filter: blur(4px); background: rgba(10,18,40,.55); }

/* ── Modal shell ── */
.tm-modal .modal-content {
    border: none; border-radius: 24px; overflow: hidden;
    box-shadow: 0 32px 80px rgba(10,18,40,.28), 0 0 0 1px rgba(255,255,255,.06);
    background: #fff;
}

/* ── Header ── */
.tm-modal .modal-header {
    background: linear-gradient(135deg, #0b1631 0%, #1a2d5a 55%, #1e3a8a 100%);
    padding: 28px 28px 22px; border-bottom: none;
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: flex-start;
}
.tm-modal .modal-header::before {
    content: ''; position: absolute; top: -50px; left: -40px;
    width: 180px; height: 180px; border-radius: 50%;
    background: rgba(255,255,255,.05); pointer-events: none;
}
.tm-modal .modal-header::after {
    content: ''; position: absolute; bottom: -60px; right: -30px;
    width: 140px; height: 140px; border-radius: 50%;
    background: rgba(255,255,255,.04); pointer-events: none;
}

/* ── Close button ── */
.tm-modal .modal-header .close {
    position: absolute; top: 14px; left: 14px;
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.75); opacity: 1; padding: 0; margin: 0;
    transition: all .2s; z-index: 2; font-size: .9rem; line-height: 1;
}
.tm-modal .modal-header .close:hover { background: rgba(255,255,255,.22); color: #fff; }

/* ── Header icon ── */
.tm-modal .tm-header-icon {
    width: 52px; height: 52px; border-radius: 16px;
    background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.18);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: #fff; margin-bottom: 12px; position: relative; z-index: 1;
}
.tm-modal .modal-title {
    font-size: 1.2rem !important; font-weight: 800 !important; color: #fff !important;
    margin: 0 0 4px !important; line-height: 1.2 !important; position: relative; z-index: 1;
}
.tm-modal .tm-header-sub {
    font-size: .8rem; color: rgba(255,255,255,.55); margin: 0;
    position: relative; z-index: 1; font-weight: 500;
}

/* ── Body ── */
.tm-modal .modal-body { padding: 28px 28px 24px; background: #fff; }

/* ── Alert ── */
.tm-modal .tm-alert {
    background: #fef2f2; border: 1.5px solid #fecaca; border-radius: 10px;
    padding: 10px 14px; font-size: .82rem; font-weight: 600; color: #dc2626;
    margin-bottom: 18px; display: flex; align-items: center; gap: 8px;
}

/* ── Divider ── */
.tm-modal .tm-divider { display: flex; align-items: center; gap: 10px; margin: 20px 0 14px; }
.tm-modal .tm-divider-line  { flex: 1; height: 1px; background: #e2e8f0; }
.tm-modal .tm-divider-label {
    font-size: .68rem; font-weight: 700; color: #94a3b8;
    letter-spacing: .8px; text-transform: uppercase;
    background: #f8fafc; padding: 3px 10px; border-radius: 20px; border: 1px solid #e2e8f0;
}

/* ── Form fields ── */
.tm-modal .tm-field { margin-bottom: 16px; }
.tm-modal .tm-field label {
    display: flex; align-items: center; gap: 6px;
    font-size: .75rem; font-weight: 700; color: #475569;
    margin-bottom: 7px; letter-spacing: .2px; direction: rtl;
}
.tm-modal .tm-field label i { font-size: .85rem; }

/* ── Input wrapper ── */
.tm-modal .tm-input-wrap { position: relative; }
.tm-modal .tm-input-icon {
    position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
    font-size: .95rem; color: #94a3b8; pointer-events: none; z-index: 1;
}
.tm-modal .tm-field .form-control {
    border: 2px solid #e2e8f0 !important; border-radius: 12px !important;
    padding: 10px 42px 10px 14px !important; font-size: .875rem !important;
    color: #1e293b !important; background: #f8fafc !important;
    height: auto !important; box-shadow: none !important;
    transition: border-color .2s, box-shadow .2s, background .2s !important;
    direction: rtl; text-align: right;
}
.tm-modal .tm-field .form-control:focus {
    border-color: #3b82f6 !important; background: #fff !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,.1) !important; outline: none !important;
}
.tm-modal .tm-field select.form-control {
    appearance: auto !important; padding-right: 42px !important; padding-left: 28px !important;
}

/* ── Meta row ── */
.tm-modal .tm-meta-row {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px; margin-bottom: 18px;
}
.tm-modal .tm-check-label {
    display: flex; align-items: center; gap: 7px;
    font-size: .78rem; font-weight: 600; color: #475569;
    cursor: pointer; user-select: none; margin: 0;
}
.tm-modal .tm-check-label input[type="checkbox"] { width: 15px; height: 15px; border-radius: 4px; accent-color: #3b82f6; cursor: pointer; }
.tm-modal .tm-link { font-size: .78rem; font-weight: 700; text-decoration: none; transition: opacity .2s; }
.tm-modal .tm-link:hover { opacity: .75; text-decoration: none; }
.tm-modal .tm-link--blue { color: #2563eb !important; }
.tm-modal .tm-link--red  { color: #dc2626 !important; }

/* ── Terms ── */
.tm-modal .tm-terms {
    display: flex; align-items: flex-start; gap: 10px;
    background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 10px;
    padding: 10px 14px; margin: 4px 0 18px;
    font-size: .78rem; font-weight: 500; color: #475569; line-height: 1.6; direction: rtl;
}
.tm-modal .tm-terms a { color: #2563eb !important; font-weight: 700; }
.tm-modal .tm-terms input[type="checkbox"] {
    margin-top: 3px; flex-shrink: 0; width: 15px; height: 15px; accent-color: #3b82f6; cursor: pointer;
}

/* ── Primary button ── */
.tm-modal .tm-btn-primary {
    display: block; width: 100%; padding: 13px 24px; border-radius: 14px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border: none; color: #fff; font-size: .95rem; font-weight: 800;
    letter-spacing: .3px; cursor: pointer; transition: all .25s;
    box-shadow: 0 4px 16px rgba(37,99,235,.3); font-family: inherit; margin-bottom: 0;
}
.tm-modal .tm-btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,99,235,.38); }
.tm-modal .tm-btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Social row ── */
.tm-modal .tm-social-row { display: flex; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0 0 18px; }
.tm-modal .tm-social-row li a {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; color: #fff; text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.tm-modal .tm-social-row li a:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.tm-modal .tm-social-row .bg-5 { background: #1877f2; }
.tm-modal .tm-social-row .bg-6 { background: #1da1f2; }
.tm-modal .tm-social-row .bg-7 { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }

/* ── Register CTA ── */
.tm-modal .tm-register-cta {
    text-align: center; background: #f0f9ff; border: 1.5px solid #bfdbfe;
    border-radius: 12px; padding: 12px 16px; font-size: .8rem; color: #475569; font-weight: 500;
}
.tm-modal .tm-register-cta a { font-weight: 800; color: #2563eb !important; text-decoration: none; }
.tm-modal .tm-register-cta a:hover { text-decoration: underline; }

/* ── Login Tabs ── */
.tm-login-tabs { display:flex; gap:10px; margin-bottom:18px; }
.tm-login-tab {
    flex:1; padding:11px 10px; border:2px solid #e2e8f0; border-radius:12px;
    background:#f8fafc; color:#64748b; font-size:13px; font-weight:600;
    cursor:pointer; transition:all .25s; text-align:center;
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
}
.tm-login-tab i { font-size:18px; line-height:1; }
.tm-login-tab:hover { border-color:#93c5fd; color:#1e40af; background:#eff6ff; }
.tm-login-tab--active { border-color:#3b82f6; background:#eff6ff; color:#1e40af; }

/* ── Validation status ── */
.tm-modal #CEmailstatus, .tm-modal #CMobilestatus,
.tm-modal #AEmailstatus, .tm-modal #AMobilestatus { font-size: .75rem; margin-top: 4px; min-height: 18px; }

/* ═══════════════════════════════════════
   Phone / Country-Code Dropdown
═══════════════════════════════════════ */
.tm-phone-wrap {
    display: flex; align-items: stretch; padding: 0 !important;
    border: 2px solid #e2e8f0; border-radius: 12px;
    overflow: visible; background: #f8fafc;
    transition: border-color .2s, box-shadow .2s;
}
.tm-phone-wrap:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.1);
    background: #fff;
}

/* Flag + code button — RIGHT side (RTL) */
.tm-country-dropdown { position: relative; order: 1; }

.tm-country-btn {
    display: flex; align-items: center; gap: 5px;
    padding: 0 12px; background: transparent; border: none;
    border-left: 2px solid #e2e8f0;
    border-radius: 0 10px 10px 0;
    cursor: pointer; white-space: nowrap;
    font-size: 13px; color: #374151;
    height: 100%; min-height: 42px;
    transition: background .18s; user-select: none;
}
.tm-country-btn:hover { background: #f0f4ff; }

.tm-flag    { font-size: 18px; line-height: 1; }
.tm-code    { font-weight: 600; color: #1e40af; font-size: 13px; }
.tm-chevron { font-size: 11px; color: #9ca3af; transition: transform .2s; }
.tm-chevron.open { transform: rotate(180deg); }

/* Number input — LEFT side */
.tm-phone-input {
    flex: 1; order: 2;
    border: none !important; box-shadow: none !important;
    border-radius: 10px 0 0 10px !important;
    padding: 10px 14px !important;
    background: transparent !important;
    font-size: .875rem !important; color: #1e293b !important;
    direction: ltr; text-align: left;
}
.tm-phone-input:focus { outline: none; box-shadow: none !important; }

/* Dropdown panel */
.tm-country-panel {
    display: none; position: absolute;
    top: calc(100% + 6px); right: 0;
    z-index: 9999; width: 280px;
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.13);
    overflow: hidden; animation: tmDropFade .18s ease;
}
.tm-country-panel.open { display: block; }

@keyframes tmDropFade {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Search */
.tm-country-search-wrap {
    position: relative; padding: 10px 10px 6px;
    border-bottom: 1px solid #f1f5f9;
}
.tm-search-icon {
    position: absolute; right: 20px; top: 50%;
    transform: translateY(-40%); color: #9ca3af; font-size: 14px;
}
.tm-country-search {
    width: 100%; padding: 7px 34px 7px 10px;
    border: 1px solid #e2e8f0; border-radius: 6px;
    font-size: 13px; outline: none; direction: rtl; text-align: right;
}
.tm-country-search:focus { border-color: #3b82f6; }

/* List */
.tm-country-list {
    list-style: none; margin: 0; padding: 4px 0;
    max-height: 230px; overflow-y: auto; direction: rtl;
}
.tm-country-list::-webkit-scrollbar       { width: 4px; }
.tm-country-list::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.tm-country-list li {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 14px; cursor: pointer; font-size: 13px; color: #374151;
    transition: background .12s; direction: rtl;
}
.tm-country-list li:hover  { background: #f0f4ff; }
.tm-country-list li.active { background: #eff6ff; }
.tm-country-list li .li-flag { font-size: 17px; }
.tm-country-list li .li-name { flex: 1; text-align: right; }
.tm-country-list li .li-code { color: #1e40af; font-weight: 600; font-size: 12px; }
