* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lexend', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #2c4f87;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 45% at 20% 15%, rgba(255, 255, 255, 0.35), transparent 60%),
        radial-gradient(ellipse 60% 35% at 80% 20%, rgba(255, 255, 255, 0.25), transparent 60%),
        linear-gradient(180deg, #2c4f87 0%, #3d6aa8 40%, #5a8bc4 75%, #89b0d8 100%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60vh;
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    background-color: rgba(90, 140, 200, 0.35);
    background-blend-mode: multiply;
    opacity: 0.6;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 25%, #000 60%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 25%, #000 60%);
    pointer-events: none;
    z-index: 0;
}

.form-container {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 680px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.form-header {
    padding: 48px 40px 40px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.logo {
    margin-bottom: 16px;
}

.logo img {
    height: 40px;
    width: auto;
}

.form-header h1 {
    font-size: 16px;
    font-weight: 500;
    color: #000;
    margin-bottom: 6px;
}

.form-header p {
    color: #888;
    font-size: 14px;
    font-weight: 400;
}

.form-header .description {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    margin-top: 16px;
    text-align: left;
    padding: 0 10px;
}

.form-body {
    padding: 32px 40px 40px;
}

.form-section {
    margin-bottom: 32px;
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.section-title {
    font-size: 13px;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    padding: 10px 14px;
    background: #f8f8f8;
    border-left: 3px solid #000;
    border-radius: 0 6px 6px 0;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 24px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    margin-bottom: 8px;
}

.form-group label .required {
    color: #000;
    margin-left: 1px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #000;
    transition: border-color 0.2s ease;
    outline: none;
}

.form-control:hover {
    border-color: #ccc;
}

.form-control:focus {
    border-color: #000;
}

.form-control::placeholder {
    color: #aaa;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23999'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

.phone-group {
    display: flex;
    gap: 12px;
}

.phone-group .country-code {
    width: 110px;
    flex-shrink: 0;
}

.phone-group .phone-input {
    flex: 1;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 28px;
    margin-bottom: 28px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: #000;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-group label {
    font-size: 14px;
    color: #444;
    cursor: pointer;
    line-height: 1.5;
    margin-bottom: 0;
}

.checkbox-group label a {
    color: #000;
    text-decoration: underline;
}

.checkbox-group label a:hover {
    text-decoration: none;
}

.submit-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: #fff;
    background: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.submit-btn:hover {
    background: #222;
}

.submit-btn:active {
    background: #000;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.form-footer {
    text-align: center;
    padding-top: 28px;
    margin-top: 8px;
}

.form-footer p {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-footer img {
    height: 20px;
    width: auto;
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 16px;
    padding: 48px 40px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.modal-icon.success {
    background: #000;
}

.modal-icon.error {
    background: #dc2626;
}

.modal-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.modal h2 {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
}

.modal p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-btn {
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.modal-btn.primary {
    background: #000;
    color: #fff;
}

.modal-btn.primary:hover {
    background: #222;
}

.modal-btn.secondary {
    background: #f5f5f5;
    color: #000;
}

.modal-btn.secondary:hover {
    background: #eee;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-buttons .modal-btn {
    flex: 1;
    max-width: 140px;
}

.modal-input-group {
    margin-bottom: 20px;
    text-align: left;
}

.modal-input-group .form-control {
    width: 100%;
}

/* CTA row (page links) */
.cta-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.cta-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    text-align: left;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    cursor: pointer;
}

.cta-card:hover {
    transform: translateY(-1px);
    border-color: #000;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.cta-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #000;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cta-card-icon svg {
    width: 18px;
    height: 18px;
}

.cta-card-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.cta-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.cta-card-subtitle {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.cta-card-arrow {
    color: #999;
    flex-shrink: 0;
    transition: transform 0.18s ease, color 0.18s ease;
}

.cta-card-arrow svg {
    width: 16px;
    height: 16px;
    display: block;
}

.cta-card:hover .cta-card-arrow {
    transform: translateX(3px);
    color: #000;
}

/* Page back link (book-call / inspection sub-pages) */
.page-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    margin-bottom: 20px;
    padding: 6px 10px 6px 6px;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}

.page-back svg {
    width: 16px;
    height: 16px;
}

.page-back:hover {
    color: #000;
    background: #f3f3f3;
}

.form-header--page {
    padding-bottom: 32px;
}

.modal-section {
    margin-bottom: 20px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #444;
    margin-bottom: 10px;
}

.modal-textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

/* Date carousel */
.date-carousel {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-behavior: smooth;
}

.date-carousel::-webkit-scrollbar {
    height: 6px;
}

.date-carousel::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.date-chip {
    flex-shrink: 0;
    min-width: 64px;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    font-family: inherit;
    transition: all 0.15s ease;
}

.date-chip:hover:not(:disabled) {
    border-color: #999;
}

.date-chip.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.date-chip:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.date-chip-day {
    font-size: 11px;
    text-transform: uppercase;
    color: inherit;
    opacity: 0.7;
}

.date-chip-num {
    font-size: 16px;
    font-weight: 600;
    margin-top: 2px;
}

.date-chip-month {
    font-size: 10px;
    text-transform: uppercase;
    margin-top: 2px;
    opacity: 0.7;
}

/* Time grid */
.time-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.time-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #222;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.time-chip:hover:not(:disabled) {
    border-color: #000;
}

.time-chip.active {
    background: #000;
    color: #fff;
    border-color: #000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.time-chip:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Platform grid */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.platform-chip {
    padding: 14px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
    text-align: center;
}

.platform-chip:hover {
    border-color: #999;
}

.platform-chip.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.modal-status {
    font-size: 12px;
    color: #888;
    padding: 8px 0;
}

.modal-status.error {
    color: #dc2626;
}

.modal-submit {
    width: 100%;
    margin-top: 8px;
}

/* Toasts */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: calc(100vw - 40px);
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff;
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
    min-width: 260px;
    max-width: 380px;
    border-left: 3px solid #dc2626;
    animation: toastIn 0.22s ease;
    pointer-events: auto;
}

.toast-success {
    border-left-color: #10b981;
}

.toast-icon {
    color: #dc2626;
    flex-shrink: 0;
    display: inline-flex;
    margin-top: 1px;
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.toast-message {
    flex: 1;
    font-size: 13px;
    line-height: 1.45;
    color: #111;
}

.toast-close {
    background: transparent;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0 2px;
    margin: -2px 0 0 4px;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #000;
}

.toast.removing {
    animation: toastOut 0.18s ease forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(20px); }
}

/* Responsive */
@media (max-width: 540px) {
    body {
        padding: 20px 16px;
    }

    .form-header {
        padding: 36px 24px 32px;
    }

    .form-body {
        padding: 24px;
    }

    .form-row {
        flex-direction: column;
        gap: 24px;
    }

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

    .time-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .time-chip {
        padding: 11px 8px;
    }

    .toast-container {
        top: auto;
        bottom: 16px;
        left: 16px;
        right: 16px;
        max-width: none;
    }

    .toast {
        min-width: 0;
        max-width: 100%;
    }
}
