:root {
    --primary: #1A1A1A;
    --accent: #C62828;
    --light: #F8F9FA;
    --border: #E9ECEF;
    --text: #333;
    --text-light: #6C757D;
    --time-bg: #F0F7FF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    color: var(--text);
}

.main-container {
    width: 100%;
    max-width: 500px;
    animation: fadeIn 0.6s ease-out;
}

.brand-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.brand-logo {
    max-width: 220px;
    height: auto;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.brand-logo:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.brand-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

.card-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.card-section h5 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.time-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.time-input-group {
    display: flex;
    flex-direction: column;
}

.time-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.time-input {
    padding: 12px 14px;
    font-size: 0.95rem;
    text-align: center;
    background: var(--time-bg);
    border: 1px solid #D1E3FF;
}

.time-input:focus {
    background: white;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

input[type="time"] {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.5px;
}

.premium-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.95rem;
    background: var(--light);
    margin-bottom: 12px;
    transition: all 0.3s;
}

.premium-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(26,26,26,0.1);
}

.tech-list {
    max-height: 300px;
    overflow-y: auto;
}

.tech-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}

.tech-item:last-child {
    border-bottom: none;
}

.tech-item:hover {
    background: var(--light);
}

.tech-item.selected {
    background: #FFF9F9;
}

.tech-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tech-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.tech-name {
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
}

.tech-badge {
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.btn-submit:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(198,40,40,0.2);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tech-list::-webkit-scrollbar {
    width: 6px;
}

.tech-list::-webkit-scrollbar-track {
    background: var(--light);
    border-radius: 10px;
}

.tech-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.tech-list::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

@media (max-width: 768px) {
    .brand-logo {
        max-width: 180px;
    }

    .main-container {
        padding: 0 15px;
    }

    body {
        padding: 20px 15px;
    }

    .time-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        max-width: 160px;
    }

    .card-section {
        padding: 20px;
    }

    .time-input {
        padding: 10px 12px;
    }
}

input[type="time"]::-webkit-calendar-picker-indicator {
    background: none;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

input[type="time"] {
    -moz-appearance: textfield;
}

input[type="time"]::-moz-focus-inner {
    border: 0;
}

.character-counter {
    transition: color 0.3s, font-weight 0.3s;
}

.character-counter.warning {
    color: #ffc107 !important;
    font-weight: 500;
}

.character-counter.danger {
    color: #dc3545 !important;
    font-weight: bold;
}