/* ==========================================================================
   OptiMES Unified Modern Footer Design System
   Clean, enterprise-grade, ultra-premium, widescreen architectural footer
   ========================================================================== */

:root {
    --ftr-bg: linear-gradient(165deg, rgba(8, 26, 48, 0.94) 0%, rgba(3, 14, 27, 0.98) 100%);
    --ftr-card-bg: rgba(6, 20, 38, 0.82);
    --ftr-border: rgba(56, 189, 248, 0.24);
    --ftr-border-subtle: rgba(255, 255, 255, 0.08);
    --ftr-cyan: #38bdf8;
    --ftr-cyan-bright: #38f2ff;
    --ftr-cyan-glow: rgba(56, 189, 248, 0.35);
    --ftr-text-white: #ffffff;
    --ftr-text-slate: #94a3b8;
    --ftr-text-dim: #64748b;
    --ftr-font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.optimes-unified-footer {
    position: relative;
    width: 100%;
    margin-top: auto;
    font-family: var(--ftr-font-sans);
    color: var(--ftr-text-white);
    box-sizing: border-box;
    font-style: normal !important;
}

.optimes-unified-footer *,
.optimes-unified-footer a,
.optimes-unified-footer h2,
.optimes-unified-footer h3,
.optimes-unified-footer h4,
.optimes-unified-footer p,
.optimes-unified-footer span,
.optimes-unified-footer button {
    font-style: normal !important;
    font-family: var(--ftr-font-sans);
    box-sizing: border-box;
}

/* Dedicated wrapper when footer is placed at page bottom (scrolling subpages) */
.optimes-unified-footer.standalone-footer {
    padding: clamp(50px, 7vw, 84px) clamp(20px, 4vw, 60px) clamp(30px, 4vw, 44px);
    background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.08) 0%, transparent 65%), #020b17;
    border-top: 1px solid var(--ftr-border);
}

/* Footer Glassmorphism Card (Widescreen, ultra-clean luxury container) */
.ftr-card {
    width: 100%;
    max-width: 1420px;
    margin: 0 auto;
    background: var(--ftr-bg);
    border: 1px solid var(--ftr-border);
    border-radius: 24px;
    padding: clamp(28px, 3.6vh, 42px) clamp(28px, 3.5vw, 56px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65), 0 0 50px rgba(56, 189, 248, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 2.4vh, 26px);
}

/* Subtle top edge luminous beam */
.ftr-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ftr-cyan), transparent);
    opacity: 0.85;
}

/* --------------------------------------------------------------------------
   1. Brand Header Row (Logomark + Wordmark Top-Left, Quick Contacts Top-Right)
   -------------------------------------------------------------------------- */
.ftr-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
    padding-bottom: 2px;
}

.ftr-brand-header {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.ftr-emblem-box {
    position: relative;
    width: clamp(38px, 3.6vw, 46px);
    height: clamp(38px, 3.6vw, 46px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.45));
    flex-shrink: 0;
}

.ftr-emblem-gear {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: ftrSpinContinuous 14s linear infinite;
    display: block;
    transform-origin: center center;
    will-change: transform;
}

.ftr-emblem-eye {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
    transform: none !important;
}

@keyframes ftrSpinContinuous {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.ftr-brand-wordmark {
    height: clamp(26px, 2.6vw, 34px);
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.18));
}

/* --------------------------------------------------------------------------
   2. Ultra-Clean CTA Row
   -------------------------------------------------------------------------- */
.ftr-cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: clamp(14px, 1.8vh, 22px) 0;
    border-top: 1px solid var(--ftr-border-subtle);
    border-bottom: 1px solid var(--ftr-border-subtle);
}

.ftr-cta-title {
    font-size: clamp(20px, 1.9vw, 26px);
    font-weight: 700;
    line-height: 1.25;
    color: var(--ftr-text-white);
    letter-spacing: -0.02em;
    margin: 0;
    flex: 1 1 auto;
}

.ftr-cta-actions {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.2vw, 28px);
    flex-wrap: wrap;
}

.ftr-primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    color: #031326 !important;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.ftr-primary-btn:hover {
    background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 26px rgba(56, 189, 248, 0.55);
    color: #020c19 !important;
}

.ftr-primary-btn svg {
    transition: transform 0.25s ease;
}

.ftr-primary-btn:hover svg {
    transform: translateX(3px);
}

.ftr-quick-contacts {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 13.5px;
    flex-wrap: wrap;
}

.ftr-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ftr-text-slate);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

.ftr-contact-link:hover {
    color: var(--ftr-cyan-bright);
    transform: translateY(-1px);
}

.ftr-contact-icon {
    width: 15px;
    height: 15px;
    color: var(--ftr-cyan);
    flex-shrink: 0;
}

.ftr-sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 11px;
}

/* --------------------------------------------------------------------------
   3. Horizontal Architectural Navigation Bar
   -------------------------------------------------------------------------- */
.ftr-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.ftr-nav-links {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.6vw, 24px);
    flex-wrap: wrap;
}

.ftr-nav-link {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ftr-text-slate);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.ftr-nav-link:hover {
    color: var(--ftr-text-white);
    transform: translateY(-1px);
}

.ftr-nav-link.active {
    color: var(--ftr-cyan);
    font-weight: 700;
}

.ftr-nav-sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.16);
    display: inline-block;
}

.ftr-back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ftr-border-subtle);
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ftr-text-slate);
    cursor: pointer;
    transition: all 0.2s ease;
    width: fit-content;
    text-decoration: none;
}

.ftr-back-to-top:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--ftr-cyan);
    color: var(--ftr-text-white);
    transform: translateY(-2px);
}

.ftr-back-to-top svg {
    transition: transform 0.2s ease;
}

.ftr-back-to-top:hover svg {
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   4. Minimalist Bottom Bar
   -------------------------------------------------------------------------- */
.ftr-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: clamp(14px, 1.8vh, 20px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ftr-copyright {
    font-size: 12px;
    color: var(--ftr-text-dim);
    margin: 0;
}

.ftr-bottom-meta {
    font-size: 11.5px;
    color: var(--ftr-text-dim);
    letter-spacing: 0.03em;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   5. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .ftr-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .ftr-cta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
    .ftr-cta-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .ftr-primary-btn {
        width: 100%;
        justify-content: center;
    }
    .ftr-nav-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .ftr-back-to-top {
        align-self: flex-start;
    }
}

@media (max-width: 600px) {
    .ftr-card {
        padding: 22px 18px;
        border-radius: 16px;
        gap: 18px;
    }
    .ftr-top-row {
        gap: 14px;
    }
    .ftr-cta-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .ftr-primary-btn {
        width: 100%;
        justify-content: center;
    }
    .ftr-quick-contacts {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .ftr-sep {
        display: none;
    }
    .ftr-nav-links {
        gap: 10px 14px;
    }
    .ftr-nav-sep {
        display: none;
    }
    .ftr-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .ftr-card {
        padding: 18px 14px;
        border-radius: 14px;
        gap: 16px;
    }
    .ftr-cta-title {
        font-size: 19px;
        line-height: 1.25;
    }
    .ftr-brand-wordmark {
        height: 22px;
        width: auto;
    }
    .ftr-contact-link {
        font-size: 13px;
    }
    .ftr-nav-links {
        gap: 8px 10px;
    }
    .ftr-nav-link {
        font-size: 12.5px;
        padding: 4px 6px;
    }
    .ftr-primary-btn {
        min-height: 44px;
        font-size: 14px;
    }
}

/* ==========================================================================
   OptiMES Interactive Contact / Demo Request Modal
   Universal executive enterprise modal for PC and Mobile
   ========================================================================== */

body.optimes-modal-open {
    overflow: hidden !important;
    touch-action: none;
}

.optimes-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 3.5vw, 36px);
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.optimes-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.optimes-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 8, 18, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
}

.optimes-modal-container {
    position: relative;
    width: 100%;
    max-width: 620px;
    max-height: min(88vh, 800px);
    background: linear-gradient(165deg, rgba(8, 26, 48, 0.96) 0%, rgba(3, 14, 27, 0.98) 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 22px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.85), 0 0 60px rgba(56, 189, 248, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 2;
    transform: scale(0.95) translateY(14px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.optimes-modal-overlay.active .optimes-modal-container {
    transform: scale(1) translateY(0);
}

.optimes-modal-glow-beam {
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #38f2ff, transparent);
    opacity: 0.9;
    z-index: 3;
}

/* Modal Header */
.optimes-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 28px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 18, 34, 0.4);
    flex-shrink: 0;
}

.optimes-modal-brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.optimes-modal-emblem {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.5));
    flex-shrink: 0;
}

.optimes-modal-gear {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: ftrSpinContinuous 14s linear infinite;
    display: block;
    transform-origin: center center;
}

.optimes-modal-eye {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.optimes-modal-title {
    font-size: clamp(18px, 2.2vw, 21px);
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.optimes-modal-subtitle {
    font-size: 12.5px;
    color: #94a3b8;
    margin: 3px 0 0;
    font-weight: 400;
}

.optimes-modal-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.optimes-modal-close-btn:hover {
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.45);
    color: #38f2ff;
    transform: rotate(90deg);
}

/* Modal Body */
.optimes-modal-body {
    padding: 22px 28px 26px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
}

.optimes-modal-body::-webkit-scrollbar {
    width: 6px;
}

.optimes-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.optimes-modal-body::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 3px;
}

.optimes-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.5);
}

/* Form Layout */
.optimes-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}

.optimes-form-group {
    display: flex;
    flex-direction: column;
}

.optimes-form-group.full-width {
    grid-column: 1 / -1;
}

.optimes-form-label {
    font-size: 11.5px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 6px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.required-mark {
    color: #38bdf8;
    margin-left: 2px;
}

.optimes-form-input,
.optimes-form-select,
.optimes-form-textarea {
    width: 100%;
    background: rgba(5, 18, 34, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 10px;
    color: #ffffff;
    font-family: inherit;
    font-size: 13.5px;
    padding: 10px 13px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.optimes-form-input::placeholder,
.optimes-form-textarea::placeholder {
    color: #475569;
}

.optimes-form-input:focus,
.optimes-form-select:focus,
.optimes-form-textarea:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
    background: rgba(7, 24, 46, 0.95);
}

.optimes-form-input.has-error,
.optimes-form-select.has-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.35) !important;
}

.optimes-form-error {
    display: none;
    color: #f87171;
    font-size: 11px;
    margin-top: 4px;
    font-weight: 500;
}

.optimes-form-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.optimes-form-select option {
    background: #06182c;
    color: #ffffff;
    padding: 8px;
}

.optimes-form-textarea {
    resize: vertical;
    min-height: 72px;
    line-height: 1.45;
}

/* Direct Contacts Footer in Modal */
.optimes-form-direct-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 12px;
    color: #64748b;
    flex-wrap: wrap;
}

.optimes-meta-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.optimes-meta-link:hover {
    color: #38f2ff;
}

.meta-dot {
    color: rgba(255, 255, 255, 0.2);
}

/* Submit Button */
.optimes-modal-submit-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    color: #031326 !important;
    font-weight: 700;
    font-size: 14.5px;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 14px;
    position: relative;
    overflow: hidden;
}

.optimes-modal-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(56, 189, 248, 0.6);
}

.optimes-modal-submit-btn .btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(3, 19, 38, 0.3);
    border-top-color: #031326;
    border-radius: 50%;
    animation: optimesSpin 0.7s linear infinite;
}

.optimes-modal-submit-btn.loading .btn-text {
    opacity: 0.7;
}

.optimes-modal-submit-btn.loading .btn-icon {
    display: none;
}

.optimes-modal-submit-btn.loading .btn-spinner {
    display: inline-block;
}

@keyframes optimesSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Form View vs Success State View Switching
   ========================================================================== */
#optimesModalFormView {
    display: block;
}

#optimesModalFormView.hidden {
    display: none !important;
}

#optimesModalSuccessView {
    display: none !important;
}

#optimesModalSuccessView.active {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px 20px;
}

.optimes-success-icon-wrap {
    width: 68px;
    height: 68px;
    margin-bottom: 16px;
    position: relative;
    filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.5));
}

.optimes-success-check {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    stroke-width: 2.5;
    stroke: #38bdf8;
    stroke-miterlimit: 10;
}

.optimes-success-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2.5;
    stroke-miterlimit: 10;
    stroke: #38bdf8;
    animation: optimesSuccessStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.optimes-success-path {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: optimesSuccessStroke 0.35s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

@keyframes optimesSuccessStroke {
    100% { stroke-dashoffset: 0; }
}

.optimes-success-title {
    font-size: 21px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.optimes-success-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #cbd5e1;
    margin: 0 0 8px;
    max-width: 480px;
}

.optimes-success-meta {
    font-size: 13px;
    line-height: 1.5;
    color: #94a3b8;
    margin: 0 0 20px;
    max-width: 480px;
}

.highlight-text {
    color: #ffffff;
    font-weight: 600;
}

.highlight-cyan {
    color: #38f2ff;
    font-weight: 600;
}

.optimes-success-ticket-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(5, 18, 34, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 8px;
    margin-bottom: 22px;
}

.ticket-label {
    font-size: 11.5px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ticket-code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    color: #38bdf8;
    font-weight: 700;
}

.optimes-modal-done-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 10px;
    color: #38f2ff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.optimes-modal-done-btn:hover {
    background: rgba(56, 189, 248, 0.22);
    border-color: #38f2ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.3);
}

/* ==========================================================================
   Mobile & Responsive Adaptations (< 640px)
   ========================================================================== */
@media (max-width: 640px) {
    .optimes-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .optimes-modal-container {
        max-width: 100%;
        max-height: 94vh;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        transform: translateY(100%);
    }

    .optimes-modal-overlay.active .optimes-modal-container {
        transform: translateY(0);
    }

    .optimes-modal-header {
        padding: 14px 18px 12px;
    }

    .optimes-modal-title {
        font-size: 17px;
    }

    .optimes-modal-subtitle {
        font-size: 11.5px;
    }

    .optimes-modal-body {
        padding: 14px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    }

    .optimes-form-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .optimes-form-label {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .optimes-modal-submit-btn {
        min-height: 46px;
        font-size: 14.5px;
        margin-top: 14px;
    }

    .optimes-form-input,
    .optimes-form-select,
    .optimes-form-textarea {
        min-height: 42px;
        font-size: 13.5px;
        padding: 8px 12px;
    }

    .optimes-form-textarea {
        min-height: 56px;
    }

    .optimes-form-direct-meta {
        margin-top: 10px;
        font-size: 11.5px;
    }
}

