/* /order — страница заявки. Фиолетовая тема сайта, адаптивная карточка. */

.order-page {
    padding: 48px 0 80px;
    background: linear-gradient(180deg, #f6f4fd 0%, #ffffff 100%);
    min-height: 60vh;
}

.order-card {
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 16px 48px rgba(76, 29, 149, 0.10);
    padding: 32px;
}

/* Строка 1 — что выбрано */
.order-selected {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #fff;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 22px;
}

.order-selected-label {
    font-size: 13px;
    opacity: 0.9;
}

.order-selected-value {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
}

.order-title {
    font-size: 26px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 6px;
}

.order-subtitle {
    color: #6b7280;
    margin: 0 0 22px;
    font-size: 15px;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.order-optional {
    font-weight: 400;
    font-size: 12px;
    color: #9ca3af;
}

/* Капча «Я не робот» */
.order-captcha-q {
    font-weight: 700;
    color: #7c3aed;
    white-space: nowrap;
}

/* Honeypot: убран с экрана, но доступен ботам, которые заполняют все поля */
.order-hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.order-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    color: #1f2937;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.order-input::placeholder {
    color: #9ca3af;
}

.order-input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.order-input.is-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

/* Комментарий — многострочное поле */
.order-textarea {
    min-height: 84px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.4;
}

.order-submit {
    margin-top: 4px;
    padding: 13px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.15s, opacity 0.15s;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.30);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.order-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.38);
}

.order-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.order-submit-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: order-spin 0.7s linear infinite;
}

@keyframes order-spin {
    to { transform: rotate(360deg); }
}

.order-hint {
    font-size: 12px;
    color: #9ca3af;
    margin: 4px 0 0;
    text-align: center;
    line-height: 1.4;
}

/* Результат */
.order-result {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.45;
}

.order-result.is-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.order-result.is-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

@media (max-width: 575.98px) {
    .order-page { padding: 28px 0 56px; }
    .order-card { padding: 22px 18px; border-radius: 14px; }
    .order-title { font-size: 22px; }
    .order-selected-value { font-size: 16px; }
}
