/* ============================================
   Demak Corporate - Contact Us Page
   Reuses about.css for nav + footer
   Fully responsive
   ============================================ */

.contact-page {
    background: #fff;
}

/* ============================================
   HERO + FORM CARD
   ============================================ */
.contact-hero {
    position: relative;
    background: #0a1428;
    min-height: calc(100vh - 72px);
    overflow: hidden;
    padding: 56px 0;
}

.contact-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center center;
    filter: brightness(0.55) saturate(0.9);
}
.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(95deg, rgba(8, 14, 30, 0.85) 0%, rgba(8, 14, 30, 0.4) 50%, rgba(8, 14, 30, 0.15) 100%);
}
.contact-hero-inner {
    position: relative;
    z-index: 1;
    height: 100%;
}

.contact-hero-inner .row {
    min-height: inherit;
    align-items: center;
}

/* remove inherited footer top gap only on contact page */
.contact-hero + .about-footer {
    margin-top: 0 !important;
}

.contact-form-card {
    background: #fff;
    border-radius: 12px;
    padding: 36px 40px 32px;
    box-shadow: 0 24px 60px -25px rgba(8, 14, 30, 0.4);
}

.contact-title {
    font-size: clamp(1.7rem, 3.5vw, 2.1rem);
    font-weight: 800;
    color: #0a1830;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}
.contact-sub {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 0 26px;
    font-weight: 500;
    max-width: 460px;
}

/* ============================================
   FORM FIELDS — underline style
   ============================================ */
.contact-form { }

.field {
    position: relative;
    padding-top: 2px;
}

.field-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #cbd5e1;
    background: transparent;
    color: #0f172a;
    font-size: 14.5px;
    font-weight: 500;
    padding: 16px 30px 8px 0;
    outline: none;
    transition: border-color .25s;
    border-radius: 0;
    line-height: 1.4;
    font-family: inherit;
}
.field-textarea {
    resize: vertical;
    min-height: 36px;
}

.field-input::placeholder { color: transparent; }
.field-input:hover { border-bottom-color: #94a3b8; }
.field-input:focus {
    border-bottom-color: #2563eb;
    box-shadow: 0 1px 0 0 #2563eb;
}

/* Floating label */
.field-label {
    position: absolute;
    left: 0;
    top: 16px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
    transition: all .2s ease;
    background: transparent;
    padding-right: 26px;
    max-width: calc(100% - 30px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.field-input:focus ~ .field-label,
.field-input:not(:placeholder-shown) ~ .field-label {
    top: -6px;
    font-size: 11px;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: 0.02em;
}
.field-input:not(:focus):not(:placeholder-shown):not(:invalid) ~ .field-label {
    color: #475569;
}

/* Right icon */
.field-icon {
    position: absolute;
    right: 0;
    top: 18px;
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
    transition: color .2s;
}
.field-icon-textarea { top: 18px; }
.field-input:focus ~ .field-icon { color: #2563eb; }

/* Validation styles (only after submit) */
.was-validated .field-input:invalid {
    border-bottom-color: #ef4444;
}
.was-validated .field-input:invalid ~ .field-label {
    color: #ef4444;
}

/* ============================================
   ACTIONS
   ============================================ */
.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.submit-btn {
    flex: 1;
    background: #34528B;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all .25s ease;
    box-shadow: 0 8px 18px -8px rgba(52, 82, 139, 0.55);
}
.submit-btn:hover {
    background: #284170;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px -8px rgba(52, 82, 139, 0.65);
}
.submit-btn:disabled { opacity: 0.85; cursor: not-allowed; }

.submit-arrow {
    flex-shrink: 0;
    background: #34528B;
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 8px 18px -8px rgba(52, 82, 139, 0.55);
    transition: all .25s ease;
}
.submit-arrow:hover {
    background: #284170;
    color: #fff;
    transform: translateY(-1px) rotate(8deg);
}
.submit-arrow:disabled { opacity: 0.85; cursor: not-allowed; }

.form-success {
    margin: 16px 0 0;
    color: #16a34a;
    font-size: 13.5px;
    font-weight: 700;
    display: none;
    align-items: center;
    gap: 8px;
}
.form-success.show {
    display: inline-flex;
    animation: slideUp .35s ease-out both;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Desktop ≥ 992 — full viewport hero (background to footer) */
@media (min-width: 992px) {
    .contact-hero {
        min-height: calc(100vh - 76px);
        min-height: calc(100dvh - 76px);
    }
}

/* Large desktop ≥ 1400 */
@media (min-width: 1400px) {
    .contact-hero { padding: 80px 0 110px; }
}

/* Tablet ≤ 991 */
@media (max-width: 991.98px) {
    .contact-hero { padding: 42px 0; min-height: calc(100vh - 68px); }
    .contact-form-card { padding: 30px 30px 26px; }
    .contact-hero-overlay {
        background: linear-gradient(180deg, rgba(8, 14, 30, 0.55) 0%, rgba(8, 14, 30, 0.65) 100%);
    }
}

/* Tablet portrait / large phone ≤ 767 */
@media (max-width: 767.98px) {
    .contact-hero { padding: 30px 0 40px; min-height: calc(100vh - 62px); }
    .contact-form-card { padding: 26px 22px 22px; border-radius: 14px; }
    .contact-title { font-size: 1.55rem; }
    .contact-sub { font-size: 0.9rem; margin-bottom: 22px; }
    .field-input { font-size: 14px; padding: 15px 28px 7px 0; }
    .field-label { font-size: 13.5px; top: 15px; }
    .field-icon { top: 17px; font-size: 15px; }
    .submit-btn { padding: 13px 20px; font-size: 0.9rem; }
    .submit-arrow { width: 44px; height: 44px; font-size: 16px; }
}

/* Mobile ≤ 575 */
@media (max-width: 575.98px) {
    .contact-hero { padding: 24px 0 34px; min-height: calc(100vh - 58px); }
    .contact-form-card { padding: 22px 18px 20px; border-radius: 12px; }
    .contact-title { font-size: 1.4rem; }
    .contact-sub { font-size: 0.88rem; }
    .form-actions { gap: 10px; }
    .submit-btn { padding: 12px 16px; font-size: 0.88rem; }
    .submit-arrow { width: 42px; height: 42px; font-size: 15px; }
}
