/* assets/style.css */
.transport-form {
    font-family: "Raleway", Arial, sans-serif;
}

.form-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 1280px;
    margin: 0 auto;
    
    /* Layout principal - 3 colunas */
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 30px;
    align-items: start;
}

/* Estilos gerais para labels */
.transport-form label {
    display: block;
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 15px;
}

/* === COLUNA 1: SELEÇÃO DO TIPO DE VEÍCULO === */
.tipo-transporte {
    display: flex;
    flex-direction: column;
}

/* Radio buttons customizados */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.radio-group-carro{
    display: flex;
    flex-direction: row;
	justify-content:space-between;
    gap: 8px;
}

.radio-label{
    background: #f8f9fa !important;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500 !important;
    margin-bottom: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.radio-label-motorista {
	width:100%;
}

.radio-label:hover {
    border-color: #007bff;
    background: #e3f2fd !important;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-label input[type="radio"]:checked + span,
.radio-label:has(input[type="radio"]:checked) {
    background: #1e3a8a !important;
    color: white !important;
    border-color: #1e3a8a !important;
}

.radio-label:has(input[type="radio"]:checked) {
    background: #1e3a8a !important;
    color: white !important;
    border-color: #1e3a8a !important;
}

/* === COLUNA 2: DETALHES DA VIAGEM === */
.detalhes-viagem {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
}

/* Linhas divisórias */
.detalhes-viagem::before {
    content: '';
    position: absolute;
    top: 0;
    left: -15px;
    width: 1px;
    height: 100%;
    background: #e9ecef;
}

.detalhes-viagem::after {
    content: '';
    position: absolute;
    top: 0;
    right: -15px;
    width: 1px;
    height: 100%;
    background: #e9ecef;
}

/* Container para título e radio buttons */
.titulo-e-radio {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.titulo-e-radio > span:first-child {
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
}

.titulo-e-radio .radio-group {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin: 0;
    justify-content: flex-end;
}

.titulo-e-radio .radio-label {
    padding: 8px 20px;
    border-radius: 20px;
    min-width: 80px;
    margin-bottom: 0 !important;
}

/* Container para duas colunas */
.duas-colunas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

/* Quando há 3 elementos na linha */
.duas-colunas:has(> :nth-child(3)) {
    grid-template-columns: 1fr 1fr 1fr;
}

/* Inputs, selects e textareas */
.transport-form input[type="text"],
.transport-form input[type="email"],
.transport-form input[type="tel"],
.transport-form input[type="date"],
.transport-form input[type="time"],
.transport-form select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.transport-form input[type="text"]:focus,
.transport-form input[type="email"]:focus,
.transport-form input[type="tel"]:focus,
.transport-form input[type="date"]:focus,
.transport-form input[type="time"]:focus,
.transport-form select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* === COLUNA 3: DADOS DE CONTATO === */
.dados-contato {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* === BOTÃO DE SUBMIT === */
.form-submit {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
}

.transport-form button[type="submit"] {
    background: #dc3545;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.transport-form button[type="submit"]:hover:not(:disabled) {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.transport-form button[type="submit"]:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Loading indicator */
.loading {
    margin-top: 10px;
    font-style: italic;
    color: #6c757d;
}

/* Mensagens */
.form-message {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* === RESPONSIVIDADE === */
@media (max-width: 1024px) {
    .form-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
		width:100%;
    }

    /* Remove linhas divisórias no mobile */
    .detalhes-viagem::before,
    .detalhes-viagem::after {
        content: none;
    }

    .duas-colunas {
        grid-template-columns: 1fr;
    }
	/* Quando há 3 elementos na linha */
	.duas-colunas:has(> :nth-child(3)) {
		grid-template-columns: 1fr;
	}
    .titulo-e-radio {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .titulo-e-radio .radio-group {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .titulo-e-radio .radio-label {
        min-width: auto;
        width: 100%;
    }
}