/* ==========================================
   SHIPICK — КЛИЕНТСКИЙ WEBAPP (СТИЛЬ ВОДИТЕЛЯ)
   ========================================== */

:root {
    --bg-primary: #0a0a0a;
    --bg-card: #121212;
    --bg-input: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #6b6b6b;
    --accent: #0066FF;
    --accent-hover: #0052cc;
    --border: #2a2a2a;
    --border-light: #333333;
    --radius-card: 24px;
    --radius-field: 12px;
    --shadow: 0 20px 35px -10px rgba(0,0,0,0.8);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-header {
    margin-bottom: 8px;
}

h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 400;
}

.form-section {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 28px;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-section:hover {
    border-color: var(--border-light);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.required::after {
    content: " *";
    color: var(--accent);
    font-weight: 600;
}

.input-field,
select.input-field,
textarea.input-field {
    width: 100%;
    height: 54px;
    padding: 0 18px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-field);
    font-size: 16px;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

textarea.input-field {
    height: auto;
    min-height: 100px;
    padding: 16px 18px;
    resize: vertical;
    line-height: 1.5;
}

.input-field:hover {
    border-color: var(--border-light);
}

.input-field:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

select.input-field {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 48px;
}

.date-block {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
    align-items: start;
}

.date-quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.quick-btn {
    height: 54px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-field);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-btn:hover {
    background: var(--bg-card);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.quick-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    min-height: 54px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
    margin: 0;
}

.checkbox-wrapper label {
    font-size: 15px;
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
    cursor: pointer;
}

.suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-field);
    margin-top: 4px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.suggestion-item {
    padding: 14px 18px;
    cursor: pointer;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    transition: background 0.15s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: var(--bg-input);
}

.submit-section {
    margin-top: 8px;
}

.submit-button {
    width: 100%;
    height: 60px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-field);
    color: white;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 20px -5px rgba(0, 102, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 12px 25px -5px rgba(0, 102, 255, 0.5);
}

.submit-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px -3px rgba(0, 102, 255, 0.4);
}

.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.field-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    padding-left: 4px;
}

@media (max-width: 640px) {
    .container {
        max-width: 100%;
    }
    
    .form-section {
        padding: 24px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 14px;
    }
}

@media (max-width: 520px) {
    body {
        padding: 16px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .row-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .date-block {
        grid-template-columns: 1fr;
    }
    
    .date-quick {
        grid-template-columns: 1fr 1fr;
    }
    
    .input-field,
    .quick-btn,
    .submit-button {
        height: 52px;
        font-size: 15px;
    }
}

@media (max-width: 380px) {
    .date-quick {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 16px;
    }
}
