.layout {
    margin: 0 10%;
}

.layout p {
    margin-left: 1%;
}

.layout-space {
    margin-top: 150px;
}

.color-block {
    padding: 20px 10% 20px 3%;
    border-radius: 25px;
    /*background: linear-gradient(to right, rgb(83, 26, 61), #121212); - previous color scheme*/
    background: linear-gradient(to right, rgb(39, 65, 105), rgb(5, 25, 54));
    box-shadow: 10px 12px 20px rgba(0, 0, 0, 0.5);
}

.intro-title {
    opacity: 0.5;
}

@media (max-width: 768px) {
    .layout {
        margin: 0 7.5%;
    }

    .layout-space {
        margin-top: 100px;
    }

    .color-block {
        padding-left: 7%;
    }
    
}

/* aiop */
.aiop-canvas-wrapper {
    width: 100%;
    overflow: hidden;
    background: #0a0e17;
    line-height: 0;
}

#aiop-canvas {
    display: block;
    width: 100%;
    height: 260px;
}

.aiop-inner-nav {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #121212;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: sticky;
    top: 80px;
    z-index: 10;
}

.aiop-inner-nav::-webkit-scrollbar {
    display: none;
}

.aiop-nav-link {
    flex-shrink: 0;
    padding: 16px 28px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    user-select: none;
}

.aiop-nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.aiop-nav-link.active {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.aiop-platform {
    display: none;
    min-height: calc(100vh - 260px - 53px);
    align-items: center;
    justify-content: center;
    background: #121212;
    padding: 0 5% 50px 5%;
}

.aiop-platform.active {
    display: flex;
}

.aiop-platform-inner {
    max-width: 680px;
    width: 100%;
    text-align: left;
    padding: 0 10%;
}

.aiop-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7caaf0;
    background: rgba(124, 155, 240, 0.1);
    border: 1px solid rgba(124, 165, 240, 0.25);
    border-radius: 999px;
    padding: 4px 10px;
    margin-bottom: 24px;
}

.aiop-platform-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: #f0f4ff;
    margin: 0 0 20px 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.aiop-platform-desc {
    font-size: 1.4rem;
    line-height: 1.75;
    margin: 0 0 40px 0;
    max-width: 660px;
}

@media (max-width: 768px) {
    #aiop-canvas {
        height: 160px;
    }

    .aiop-inner-nav {
        top: 80px;
    }

    .aiop-nav-link {
        padding: 14px 18px;
        font-size: 0.72rem;
    }

    .aiop-platform {
        padding: 60px 20px;
    }
}

/* ── AIOP Inquiry Overlay ──────────────────────────────── */
.aiop-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2100;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.aiop-overlay.open {
    display: flex;
}

.aiop-form-card {
    position: relative;
    z-index: 2101;
    background: #0d1120;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 48px 52px;
    width: min(700px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.aiop-form-close {
    position: absolute;
    top: 20px;
    right: 22px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.15s;
}

.aiop-form-close:hover {
    color: #fff;
}

.aiop-form-header {
    margin-bottom: 32px;
}

.aiop-form-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #f0f4ff;
    margin: 12px 0 8px;
    letter-spacing: -0.02em;
}

.aiop-form-header p {
    color: rgba(200, 210, 240, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

.aiop-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.aiop-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.aiop-form-full {
    grid-column: 1 / -1;
    margin-bottom: 16px;
}

.aiop-form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.aiop-form-group label span {
    color: #7cb8f0;
}

.aiop-form-group input,
.aiop-form-group textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 11px 14px;
    color: #f0f4ff;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    resize: vertical;
}

.aiop-form-group input::placeholder,
.aiop-form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.aiop-form-group input:focus,
.aiop-form-group textarea:focus {
    border-color: rgba(124, 184, 240, 0.5);
}

.aiop-disclaimer {
    margin: 20px 0 28px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.aiop-check-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.aiop-check-label input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
    width: 17px;
    height: 17px;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
}

.aiop-check-label input[type="checkbox"]:checked {
    background: #7cb8f0;
    border-color: #7cb8f0;
}

.aiop-check-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: translate(-50%, -65%) rotate(45deg);
}

.aiop-check-label span {
    font-size: 0.78rem;
    line-height: 1.6;
    color: rgba(200, 210, 240, 0.45);
}

.aiop-check-label span a {
    color: #7cb8f0;
    text-decoration: underline;
}

.aiop-submit-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* Success state */
.aiop-form-success {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
}

.aiop-success-inner {
    text-align: center;
}

.aiop-check-svg {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    stroke: #7cb8f0;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.aiop-success-inner p {
    font-size: 1.1rem;
    color: rgba(200, 210, 240, 0.7);
    line-height: 1.6;
}

/* ── AIOP form card — glass style matching contact card ─── */
.aiop-form-card {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    border-radius: 25px;
}

/* Inputs — rounded pills matching contact.css */
.aiop-form-card input,
.aiop-form-card textarea {
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.45);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 14px;
    padding: 0.7rem 1rem;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.aiop-form-card input::placeholder,
.aiop-form-card textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.aiop-form-card input:focus,
.aiop-form-card textarea:focus {
    border-color: rgba(255, 255, 255, 0.6);
}

/* ── Steps show / hide ─────────────────────────────────── */
.aiop-form-card .form-step          { display: none; }
.aiop-form-card .form-step.active   {
    display: block;
    animation: aiopFadeUp 0.35s ease both;
}

@keyframes aiopFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Step indicator dots ───────────────────────────────── */
.aiop-form-card .step-indicator {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 1.75rem;
}

.aiop-form-card .step-item {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
    flex-shrink: 0;
}

.aiop-form-card .step-item.active    { background: #ffffff; transform: scale(1.4); }
.aiop-form-card .step-item.completed { background: #22c52a; width: 20px; }

/* ── Step header ───────────────────────────────────────── */
.aiop-form-card .step-header { margin-bottom: 1.5rem; }

.aiop-form-card .step-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 4px;
}

.aiop-form-card .step-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
}

/* ── Step navigation ───────────────────────────────────── */
.aiop-form-card .step-nav {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
}

.aiop-form-card .step-nav .button {
    flex: 1;
    margin: 0;
    padding: 0.8rem;
    font-size: 0.95rem;
    border-radius: 25px;
    cursor: pointer;
    font-family: inherit;
}

.aiop-form-card .btn-back {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.aiop-form-card .btn-next {
    background: #ffffff;
    color: #000000;
    border: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.aiop-form-card .btn-back:hover,
.aiop-form-card .btn-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Submit button — same look as btn-next */
.aiop-form-card #aiop-submit-btn {
    flex: 1;
    border-radius: 25px;
    padding: 0.8rem;
    background: #ffffff;
    color: #000000;
    border: none;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.aiop-form-card #aiop-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* ── Input error state ─────────────────────────────────── */
.aiop-form-card .input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* ── Success message ───────────────────────────────────── */
.aiop-form-card .success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    text-align: center;
}

.aiop-form-card .success-text {
    color: #ffffff;
    font-size: 1.1rem;
    margin-top: 12px;
    opacity: 0;
}

.aiop-form-card .checkmark {
    width: 52px;
    height: 52px;
    stroke: #fff;
    stroke-width: 2;
}

.aiop-form-card .checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke: #fff;
    fill: none;
}

.aiop-form-card .checkmark-check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 2.5;
    stroke: #fff;
    fill: none;
}

@keyframes draw-circle {
    to { stroke-dashoffset: 0; }
}

@keyframes draw-check {
    to { stroke-dashoffset: 0; }
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Prose body in step 1 / 3 ──────────────────────────── */
.aiop-step-body {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.25rem;
}

.aiop-step-body p  { margin: 0 0 0.75rem; }
.aiop-step-body ul { margin: 0 0 0.75rem; padding-left: 1.25rem; }
.aiop-step-body li { margin-bottom: 0.4rem; }
.aiop-step-body strong { color: rgba(255, 255, 255, 0.9); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 580px) {
    .aiop-form-card {
        padding: 32px 24px;
    }

    .aiop-form-row {
        grid-template-columns: 1fr;
    }
}
