/* Connect pages (Partner With Us, Contact Us) — new design. Shared pieces (hm-h2, hm-swoosh, hm-blob, reveal) are in roinet.css. */

.rn-connect { background: linear-gradient(180deg, #E8F4F6 0%, #EEF6FB 30%, #F5F7F4 65%, #FAF8F2 100%); color: #0F1C3F; overflow-x: clip; }

/* ---------- main block ---------- */
/* overflow: clip (not hidden) so the sticky left side keeps working */
.cn-main { position: relative; overflow: clip; padding: clamp(48px, 6vw, 96px) var(--pad-x, clamp(20px, 4vw, 40px)) clamp(56px, 6vw, 96px); }
.cn-blob-a { right: -10%; top: -15%; width: 46vw; max-width: 620px; background: radial-gradient(circle, rgba(26,163,224,.16) 0%, rgba(26,163,224,0) 68%); animation: cnDrift 14s ease-in-out infinite; }
.cn-blob-b { left: -12%; bottom: -20%; width: 42vw; max-width: 560px; background: radial-gradient(circle, rgba(124,196,127,.15) 0%, rgba(124,196,127,0) 68%); animation: cnDrift 18s ease-in-out -6s infinite; }
@keyframes cnDrift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(26px, -18px) scale(1.06); } }
@keyframes cnBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes cnPop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }

.cn-grid { position: relative; max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (min-width: 960px) {
    .cn-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
    .cn-side { position: sticky; top: 120px; }
}

/* ---------- left side ---------- */
.cn-side { display: flex; flex-direction: column; gap: 22px; }
.cn-title { margin: 0; font-family: Figtree, sans-serif; font-weight: 800; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -.03em; color: #0B3A44; text-wrap: balance; }
.cn-title span { color: #1AA3E0; }
.cn-swoosh { margin-top: -8px; }
.cn-lead { margin: 0; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.65; color: #55606E; text-wrap: pretty; }

.cn-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 18px; background: rgba(255,255,255,.8); box-shadow: inset 0 0 0 1px rgba(255,255,255,.95), 0 8px 22px rgba(15,28,63,.05); }
.cn-tab-pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 14px; background: #1AA3E0; box-shadow: 0 8px 20px rgba(26,163,224,.3); transition: transform .45s cubic-bezier(.34, 1.3, .64, 1); }
.cn-tabs.is-right .cn-tab-pill { transform: translateX(100%); }
.cn-tab { position: relative; display: block; text-align: center; padding: 13px 10px; border-radius: 14px; font-size: 15px; font-weight: 700; line-height: 1.3; color: #3A4654; text-decoration: none; transition: color .3s; }
.cn-tab:hover { color: #0B3A44; text-decoration: none; }
.cn-tab.is-active, .cn-tab.is-active:hover { color: #FFFFFF; }
.cn-tab:focus-visible { outline: 3px solid #0B3A44; outline-offset: 2px; }

.cn-panes { display: grid; }
.cn-pane { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 14px; opacity: 0; transform: translate3d(0, 16px, 0); pointer-events: none; visibility: hidden; transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s linear .6s; }
.cn-pane.is-active { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.cn-pane h2 { margin: 0; font-family: Figtree, sans-serif; font-weight: 800; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -.02em; color: #0B3A44; }
.cn-pane p { margin: 0; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.65; color: #55606E; text-wrap: pretty; }
.cn-pane img { width: clamp(110px, 12vw, 150px); height: auto; aspect-ratio: 1; object-fit: contain; margin-top: 8px; filter: drop-shadow(0 16px 24px rgba(11,58,68,.16)); animation: cnBob 6s ease-in-out infinite; }

.cn-contact { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 6px; font-size: 14px; font-weight: 600; }
.cn-contact a { display: flex; align-items: center; gap: 8px; color: #0B3A44; text-decoration: none; }
.cn-contact a:hover { color: #1AA3E0; }

.cn-info { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cn-info li { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px rgba(255,255,255,.95), 0 8px 22px rgba(15,28,63,.05); font-size: 15px; line-height: 1.55; color: #3A4654; }
.cn-info b { display: block; font-size: 13px; font-weight: 800; color: #0B3A44; margin-bottom: 2px; }
.cn-info a { color: #0B3A44; font-weight: 700; text-decoration: none; }
.cn-info a:hover { color: #1AA3E0; }
.cn-info-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #EEF8FD; display: grid; place-items: center; }
.cn-partner-link { margin: 0; font-size: 15px; color: #55606E; }
.cn-partner-link a { font-weight: 700; color: #1676B8; text-decoration: none; }
.cn-partner-link a:hover { color: #0B3A44; }

/* ---------- form card ---------- */
.cn-card { position: relative; border-radius: 32px; padding: clamp(24px, 3vw, 40px); background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.95), 0 30px 70px rgba(26,120,170,.12); scroll-margin-top: 110px; }
.rn-js .cn-card.rv { transform: translate3d(0, 40px, 0); }
.rn-js .is-in .cn-card.rv { transform: none; }

.cn-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 560px) { .cn-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cn-form-head, .cn-wide, .cn-consent, .cn-alert, .cn-submit { grid-column: 1 / -1; }
.cn-form-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 4px; }
.cn-form-title { font-size: 18px; font-weight: 800; color: #0B3A44; }
.cn-form-note { font-size: 13px; font-weight: 600; color: #8A96A3; }

.cn-field { display: flex; flex-direction: column; gap: 8px; margin: 0; min-width: 0; }
.cn-label { font-size: 13px; font-weight: 700; color: #3A4654; }
.cn-opt { font-weight: 500; color: #8A96A3; }
.cn-input { width: 100%; height: 52px; padding: 0 16px; border: 0; border-radius: 14px; background: #F3F7FA; box-shadow: inset 0 0 0 1.5px rgba(11,58,68,.06); font-family: Figtree, sans-serif; font-size: 16px; font-weight: 500; color: #0B3A44; outline: none; transition: box-shadow .2s, background .2s; }
.cn-input::placeholder { color: #9AA5B1; }
.cn-input:focus { background-color: #FFFFFF; box-shadow: inset 0 0 0 1.5px #1AA3E0; }
.cn-select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px; text-overflow: ellipsis;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2355606E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; }
.cn-select:disabled { cursor: not-allowed; opacity: .6; }
.cn-textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.cn-err { font-size: 12px; font-weight: 600; color: #D93A4A; }
.cn-err:empty { display: none; }
.cn-field.has-error .cn-input { box-shadow: inset 0 0 0 1.5px #E5484D; }

.cn-consent { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 14px 16px; border-radius: 14px; background: #F8FAFC; box-shadow: inset 0 0 0 1.5px rgba(11,58,68,.06); cursor: pointer; transition: background .2s, box-shadow .2s; }
.cn-consent:has(input:checked) { background: #EEF8FD; box-shadow: inset 0 0 0 1.5px rgba(26,163,224,.35); }
.cn-consent.has-error:not(:has(input:checked)) { background: #FDECEE; box-shadow: inset 0 0 0 1.5px #E5484D; }
.cn-consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #1AA3E0; cursor: pointer; }
.cn-consent span { font-size: 13px; line-height: 1.55; color: #3A4654; }
.cn-consent a { color: #1676B8; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.cn-consent a:hover { color: #0B3A44; }

.cn-alert { margin: 0; padding: 10px 14px; border-radius: 12px; background: #FDECEE; color: #B42335; font-size: 13px; font-weight: 600; }
.cn-alert[hidden] { display: none; }

.cn-submit { margin-top: 6px; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; height: 56px; border-radius: 16px; background: #1AA3E0; color: #FFFFFF; font-family: inherit; font-size: 16px; font-weight: 700; box-shadow: 0 10px 26px rgba(26,163,224,.35); transition: background .2s, transform .2s, opacity .2s; }
.cn-submit:hover { background: #1590C8; transform: translateY(-2px); }
.cn-submit:focus-visible { outline: 3px solid #0B3A44; outline-offset: 3px; }
.cn-submit[disabled] { opacity: .55; cursor: progress; transform: none; }

/* ---------- thank-you panel ---------- */
.cn-thanks { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; padding: 20px; outline: none; }
.cn-tick { width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(145deg, #4CC77A, #1F9D5C); box-shadow: 0 16px 34px rgba(31,157,92,.32); display: grid; place-items: center; animation: cnPop .7s cubic-bezier(.34, 1.5, .64, 1) both; }
.cn-thanks-title { font-family: Figtree, sans-serif; font-size: 26px; font-weight: 800; color: #0B3A44; }
.cn-thanks-text { max-width: 360px; font-size: 16px; line-height: 1.6; color: #55606E; }
.cn-again { margin-top: 8px; background: #FFFFFF; color: #0B3A44; padding: 13px 22px; border-radius: 14px; font-size: 15px; font-weight: 600; box-shadow: inset 0 0 0 1px #D3DCE6; text-decoration: none; }
.cn-again:hover { background: #F3F6FA; color: #0B3A44; text-decoration: none; }

/* ---------- Why ROINET (from the old Partner With Us page) ---------- */
.cn-why { padding: 0 var(--pad-x, clamp(20px, 4vw, 40px)) clamp(64px, 7vw, 110px); }
.cn-why-inner { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(28px, 3.5vw, 44px); }
.cn-why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 640px) { .cn-why-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cn-why-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cn-why-item { display: flex; align-items: flex-start; gap: 16px; padding: 22px; border-radius: 22px; background: rgba(255,255,255,.85); box-shadow: inset 0 0 0 1px rgba(255,255,255,.95), 0 14px 34px rgba(15,28,63,.06); transition: transform .3s var(--ease), box-shadow .3s; }
.cn-why-item:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.95), 0 20px 44px rgba(26,120,170,.12); }
/* the old icons are white, so they sit on a blue tile */
.cn-why-item img { flex: none; width: 56px; height: 56px; padding: 12px; box-sizing: border-box; object-fit: contain; border-radius: 16px; background: linear-gradient(145deg, #1AA3E0, #1676B8); box-shadow: 0 10px 22px rgba(26,163,224,.28); }
.cn-why-item b { display: block; font-size: 16px; font-weight: 800; line-height: 1.35; color: #0B3A44; margin-bottom: 4px; }
.cn-why-item span span { display: block; font-size: 14px; line-height: 1.55; color: #55606E; }

/* ---------- map (Contact Us) ---------- */
.cn-map { padding: 0 var(--pad-x, clamp(20px, 4vw, 40px)) clamp(64px, 7vw, 110px); }
.cn-map-frame { max-width: 1120px; margin: 0 auto; border-radius: 28px; overflow: hidden; background: #E8EEF3; box-shadow: 0 20px 50px rgba(26,120,170,.1); }
.cn-map-frame iframe { display: block; width: 100%; height: clamp(300px, 40vw, 440px); }

@media (prefers-reduced-motion: reduce) {
    .cn-blob-a, .cn-blob-b, .cn-pane img, .cn-tick { animation: none; }
    .cn-pane, .cn-tab-pill, .cn-submit, .cn-why-item { transition: none; }
}
