/* =====================================================================
   Contact page (/contactus/) — layout + animations.
   Builds on /products/hardware/hw-landing.css (tokens, reveals, letters).
===================================================================== */
:root { --ct-gold: #c8902e; --ct-gold-2: #e3b866; --ct-gold-soft: #fdf3e2; }
.ct-page { position: relative; background: #ffffff; font-family: var(--hw-sans); overflow: hidden; }
.ct-page h1, .ct-page h2, .ct-page p { margin: 0; text-transform: none; }

/* ---------- Banner with animated wave ---------- */
.ct-banner { position: relative; height: clamp(180px, 20vw, 300px); overflow: hidden; background: #eadfce; }
.ct-banner img {
    width: 100%;
    height: 118%;
    object-fit: cover;
    object-position: 50% 40%;
    opacity: 0;
    transform: scale(1.1);
    translate: 0 var(--py, 0px);
    transition: opacity 1.2s var(--hw-ease), transform 2s var(--hw-ease), translate 0.5s var(--hw-ease);
}
.hw-ready .ct-banner img { opacity: 1; transform: scale(1.02); }
.ct-wave { position: absolute; left: -5%; right: -5%; bottom: -1px; width: 110%; height: clamp(50px, 7vw, 110px); }
.ct-wave-gold { fill: var(--ct-gold-2); opacity: 0.55; animation: ctWave 9s ease-in-out infinite alternate; }
.ct-wave-white { fill: #ffffff; animation: ctWave 11s ease-in-out infinite alternate-reverse; }
@keyframes ctWave { from { transform: translateX(-2%); } to { transform: translateX(2%); } }

/* ---------- Title ---------- */
.ct-head { position: relative; z-index: 2; margin-top: clamp(-40px, -2.4vw, -20px); text-align: center; }
.ct-mark { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 8px; }
.ct-mark img { width: 54px; height: auto; border-radius: 50%; background: #fff; box-shadow: 0 6px 16px rgba(31, 36, 33, 0.12); }
.ct-mark-line { width: clamp(50px, 8vw, 110px); height: 1.5px; background: linear-gradient(90deg, transparent, var(--ct-gold)); transform: scaleX(0); transition: transform 1s var(--hw-ease) 0.4s; }
.ct-mark-line:first-child { transform-origin: right; }
.ct-mark-line:last-child { background: linear-gradient(90deg, var(--ct-gold), transparent); transform-origin: left; }
.hw-ready .ct-mark-line { transform: scaleX(1); }
.ct-kicker { color: var(--ct-gold); font-size: clamp(12px, 0.95vw, 14px); font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase !important; }
.ct-title { margin: 4px 0 12px !important; font-family: var(--hw-sans); font-size: clamp(42px, 5vw, 78px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.05; }
.ct-title .hw-split { display: inline-block; color: #0f2a1c; }
.ct-title .is-gold {
    background: linear-gradient(100deg, #b07a22 0%, #e3b866 45%, #b07a22 90%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: ctShine 6s ease-in-out 2s infinite;
}
@keyframes ctShine { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.ct-sub { max-width: 46em; margin: 0 auto !important; color: var(--hw-text); font-size: clamp(15.5px, 1.15vw, 18.5px); line-height: 1.65; }

/* ---------- Grid ---------- */
.ct-body { padding-block: clamp(32px, 3.4vw, 54px) clamp(30px, 3vw, 50px); }
.ct-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; gap: clamp(20px, 2.6vw, 40px); }

/* ---------- Form card ---------- */
.ct-card {
    position: relative;
    padding: clamp(22px, 2.4vw, 38px);
    border: 1.5px solid #f0d9b2;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fffcf7 100%);
    box-shadow: 0 30px 60px rgba(31, 36, 33, 0.08);
    overflow: hidden;
}
.ct-card-head { position: relative; z-index: 1; display: flex; gap: 18px; margin-bottom: 24px; }
.ct-card-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--ct-gold-soft);
    color: var(--ct-gold);
    box-shadow: 0 8px 20px rgba(200, 144, 46, 0.18);
    animation: ctBob 4s ease-in-out infinite;
}
.ct-card-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@keyframes ctBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.ct-card-kicker { color: var(--ct-gold); font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase !important; }
.ct-card-title { margin: 2px 0 6px !important; color: #0f2a1c; font-family: var(--hw-sans); font-size: clamp(22px, 1.9vw, 30px); font-weight: 700; line-height: 1.2; }
.ct-card-title span { color: var(--hw-green); }
.ct-card-note { color: var(--hw-text); font-size: 14.5px; }

.ct-fields { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ct-field { position: relative; }
.ct-field--wide { grid-column: 1 / -1; }
.ct-field input, .ct-field textarea {
    display: block;
    width: 100%;
    height: 58px;
    padding: 22px 44px 6px 50px;
    border: 1.5px solid #e4e1da;
    border-radius: 14px;
    background: #ffffff;
    color: var(--hw-ink);
    font: 500 15.5px var(--hw-sans);
    outline: none;
    box-shadow: none;
    transition: border-color 0.3s var(--hw-ease), box-shadow 0.3s var(--hw-ease), background 0.3s;
}
.ct-field textarea { height: 140px; padding-top: 28px; resize: vertical; min-height: 120px; line-height: 1.55; }
.ct-field label {
    position: absolute;
    left: 50px;
    top: 19px;
    color: #7b807c;
    font-size: 15.5px;
    pointer-events: none;
    transform-origin: left top;
    transition: transform 0.35s var(--hw-ease), color 0.3s;
}
.ct-field input:focus + label, .ct-field input:not(:placeholder-shown) + label,
.ct-field textarea:focus + label, .ct-field textarea:not(:placeholder-shown) + label {
    transform: translateY(-11px) scale(0.78);
    color: var(--hw-green);
    font-weight: 600;
}
.ct-ico {
    position: absolute;
    left: 17px;
    top: 18px;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: #6b706c;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s, transform 0.45s var(--hw-ease);
}
.ct-field:focus-within .ct-ico { stroke: var(--hw-green); transform: scale(1.12) rotate(-6deg); }
.ct-field input:hover, .ct-field textarea:hover { border-color: #d3cfc5; }
.ct-field input:focus, .ct-field textarea:focus { border-color: var(--hw-green); box-shadow: 0 0 0 4px rgba(13, 92, 47, 0.1); }
.ct-ok {
    position: absolute;
    right: 14px;
    top: 17px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--hw-green);
    color: #ffffff;
    font-size: 11px;
    opacity: 0;
    transform: scale(0.3);
    transition: opacity 0.3s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ct-field.is-valid .ct-ok { opacity: 1; transform: none; }
.ct-field.is-invalid input, .ct-field.is-invalid textarea { border-color: #c0392b; box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.08); }
.ct-field.is-invalid label { color: #c0392b; }
.ct-field.is-invalid .ct-ico { stroke: #c0392b; }
.ct-err { max-height: 0; overflow: hidden; margin: 0 !important; padding-left: 4px; color: #c0392b; font-size: 13px; transition: max-height 0.35s var(--hw-ease), margin 0.35s; }
.ct-field.is-invalid .ct-err { max-height: 40px; margin-top: 6px !important; }
.ct-count { position: absolute; right: 14px; bottom: 10px; color: #9aa09c; font-size: 12px; transition: color 0.3s; }
.ct-field.is-invalid .ct-count { bottom: 34px; }
.ct-count.is-near { color: var(--ct-gold); font-weight: 700; }

.ct-actions { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; margin-top: 22px; }
.ct-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    padding: 0 30px 0 10px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(160deg, #137a3f 0%, var(--hw-green) 55%, var(--hw-green-dark) 100%);
    color: #ffffff;
    font: 700 16.5px var(--hw-sans);
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(13, 92, 47, 0.3);
    transition: transform 0.45s var(--hw-ease), box-shadow 0.45s var(--hw-ease), background 0.4s;
}
.ct-submit::before {                                   /* shine sweep */
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 50%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.8s var(--hw-ease);
}
.ct-submit:hover::before { left: 120%; }
.ct-submit:hover { transform: translateY(-2px); box-shadow: 0 20px 36px rgba(13, 92, 47, 0.36); }
.ct-submit:focus-visible { outline: 3px solid rgba(13, 92, 47, 0.35); outline-offset: 3px; }
.ct-submit-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); transition: transform 0.6s var(--hw-ease); }
.ct-submit:hover .ct-submit-ico { transform: translate(3px, -3px) rotate(-12deg); }
.ct-spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, 0.35); border-top-color: #ffffff; border-radius: 50%; animation: ctSpin 0.8s linear infinite; }
.ct-submit.is-loading { cursor: progress; }
.ct-submit.is-loading .ct-spinner { display: block; }
.ct-submit.is-loading .ct-submit-ico { animation: ctFly 1.2s var(--hw-ease) infinite; }
.ct-submit.is-success { background: linear-gradient(160deg, #1d9150, #137a3f); }
.ct-submit.is-success .ct-submit-ico i::before { content: "\f00c"; }
.ct-submit.is-error { background: linear-gradient(160deg, #c0392b, #9e2d22); }
@keyframes ctSpin { to { transform: rotate(360deg); } }
@keyframes ctFly { 0% { transform: none; } 50% { transform: translate(6px, -6px); opacity: 0.4; } 100% { transform: none; } }

.ct-response { position: relative; z-index: 1; }
.ct-alert { display: flex; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 14px; font-size: 15px; line-height: 1.5; animation: hwFadeUp 0.5s var(--hw-ease) both; }
.ct-alert i { margin-top: 3px; font-size: 18px; }
.ct-alert ul { margin: 6px 0 0; padding-left: 18px; }
.ct-alert--success { background: #eaf6ee; color: #12512c; border: 1px solid #c4e5cf; }
.ct-alert--error { background: #fdecea; color: #8e2a20; border: 1px solid #f4c7c1; }
.ct-card.is-shake { animation: ctShake 0.5s var(--hw-ease); }
@keyframes ctShake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }

.ct-lines { position: absolute; right: 0; bottom: 0; width: 60%; height: 140px; fill: none; stroke: var(--ct-gold-2); stroke-width: 1; opacity: 0.55; pointer-events: none; }
.ct-lines path { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2.4s var(--hw-ease); }
.ct-form-card.is-in .ct-lines path { stroke-dashoffset: 0; }
.ct-lines path:nth-child(2) { transition-delay: 0.15s; } .ct-lines path:nth-child(3) { transition-delay: 0.3s; }
.ct-lines path:nth-child(4) { transition-delay: 0.45s; } .ct-lines path:nth-child(5) { transition-delay: 0.6s; }

/* ---------- Info cards ---------- */
.ct-info { display: grid; gap: 16px; }
.ct-info-title { color: #0f2a1c; font-family: var(--hw-sans); font-size: clamp(20px, 1.6vw, 26px); font-weight: 700; }
.ct-info-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 16px 16px 18px;
    border: 1px solid #efece6;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(31, 36, 33, 0.06);
    transition: opacity 0.9s var(--hw-ease), transform 0.6s var(--hw-ease), box-shadow 0.45s var(--hw-ease), border-color 0.4s;
}
.ct-info-card.is-in:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(31, 36, 33, 0.12); border-color: #f0d9b2; }
.ct-info-main { display: flex; flex: 1; align-items: center; gap: 18px; min-width: 0; color: inherit; text-decoration: none !important; }
.ct-info-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--ct-gold-soft);
    color: var(--ct-gold);
    font-size: 24px;
    box-shadow: 0 8px 18px rgba(200, 144, 46, 0.18);
    transition: background 0.4s, color 0.4s, transform 0.5s var(--hw-ease);
}
.ct-info-card:hover .ct-info-icon { background: var(--ct-gold); color: #ffffff; }
.ct-info-card:hover .ct-shake i { animation: ctRing 0.8s var(--hw-ease); }
.ct-info-card:hover .ct-fly i { animation: ctMail 0.8s var(--hw-ease); }
@keyframes ctRing { 0%, 100% { transform: none; } 15%, 45%, 75% { transform: rotate(-14deg); } 30%, 60% { transform: rotate(14deg); } }
@keyframes ctMail { 40% { transform: translate(4px, -5px) rotate(-8deg); } }
.ct-info-text { min-width: 0; }
.ct-info-text strong { display: block; color: #0f2a1c; font-size: 18px; font-weight: 700; text-transform: capitalize; }
.ct-info-text span { display: block; color: var(--hw-text); font-size: 15.5px; overflow-wrap: anywhere; transition: color 0.3s; }
.ct-info-main:hover .ct-info-text span { color: var(--hw-green); }
.ct-copy {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1.5px solid var(--ct-gold-2);
    border-radius: 50%;
    background: #ffffff;
    color: var(--ct-gold);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, transform 0.45s var(--hw-ease), border-color 0.3s;
}
.ct-copy:hover, .ct-copy:focus-visible { background: var(--ct-gold); color: #ffffff; transform: scale(1.08); }
.ct-copy.is-done { background: var(--hw-green); border-color: var(--hw-green); color: #ffffff; animation: ctPop 0.4s var(--hw-ease); }
@keyframes ctPop { 50% { transform: scale(1.2); } }

.ct-photo { position: relative; margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 1.45; box-shadow: 0 16px 36px rgba(31, 36, 33, 0.1); }
.ct-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 2s var(--hw-ease); }
.ct-photo.is-in img { transform: scale(1); }
.ct-photo:hover img { transform: scale(1.05); }

.ct-toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    z-index: 9999;
    padding: 12px 20px;
    border-radius: 999px;
    background: #0f2a1c;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 600;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 20px);
    transition: opacity 0.3s, transform 0.45s var(--hw-ease);
}
.ct-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* bottom decorative lines */
.ct-foot-lines { display: block; width: 100%; height: clamp(60px, 8vw, 120px); fill: none; stroke: var(--ct-gold-2); stroke-width: 1; opacity: 0.5; }
.ct-foot-lines path { animation: ctDrift 10s ease-in-out infinite alternate; }
.ct-foot-lines path:nth-child(2) { animation-delay: -2s; } .ct-foot-lines path:nth-child(3) { animation-delay: -4s; } .ct-foot-lines path:nth-child(4) { animation-delay: -6s; }
@keyframes ctDrift { from { transform: translateX(-20px); } to { transform: translateX(20px); } }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .ct-grid { grid-template-columns: 1fr; }
    .ct-info { grid-template-columns: 1fr 1fr; }
    .ct-info-title, .ct-photo { grid-column: 1 / -1; }
    .ct-photo { aspect-ratio: 2.2; }
}
@media (max-width: 640px) {
    .ct-fields { grid-template-columns: 1fr; }
    .ct-info { grid-template-columns: 1fr; }
    .ct-card-head { flex-direction: column; gap: 12px; }
    .ct-submit { width: 100%; justify-content: center; }
    .ct-info-icon { width: 54px; height: 54px; font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .ct-wave path, .ct-foot-lines path, .ct-card-icon, .ct-title .is-gold { animation: none !important; }
    .ct-lines path { stroke-dashoffset: 0; transition: none; }
}
