/* Fretamento Page Specific Styles */

/* Fretamento Section */
.fretamento-section {
    padding: 80px 0;
    background: #f8f9fa;
    position: relative;
}

.section-header {
    text-align: left;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2rem;
    font-weight: 300;
    color: #000000;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    text-align: left;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 2px;
    background: #9beb24;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #5a6c7d;
    font-weight: 300;
    margin: 15px 0 0 0;
}

/* Form Container */
.form-container {
    background: white;
    border-radius: 25px;
    padding: 50px;
    margin: 0 auto;
    max-width: 800px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

/* Form Styles */
.fretamento-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Input Container */
.input-container {
    position: relative;
    margin-bottom: 10px;
}

.input-container input,
.input-container select {
    width: 100%;
    padding: 20px 0 10px 0;
    border: none;
    border-bottom: 2px solid #e9ecef;
    background: transparent;
    font-size: 1rem;
    color: #2c3e50;
    transition: all 0.3s ease;
    outline: none;
}

.input-container input:focus {
    outline: none;
    border-bottom-color: #9beb24;
}

.input-container label {
    position: absolute;
    left: 0;
    top: 20px;
    color: #5a6c7d;
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    transform-origin: left top;
}

.input-container input:focus + label,
.input-container input:valid + label,
.input-container input:not(:placeholder-shown) + label,
.input-container.filled label {
    transform: translateY(-40px) scale(0.8);
    color: #9beb24;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #9beb24;
    transition: width 0.3s ease;
}

.input-container input:focus ~ .input-line {
    width: 100%;
}

/* Select Container */
.select-container {
    position: relative;
    margin-bottom: 10px;
}

.select-container select {
    width: 100%;
    padding: 20px 40px 10px 0;
    border: none;
    border-bottom: 2px solid #e9ecef;
    background: transparent;
    font-size: 1rem;
    color: #2c3e50;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    cursor: pointer;
}

.select-container select option {
    color: #2c3e50;
    background: white;
    padding: 10px;
}

.select-container select:focus {
    outline: none;
    border-bottom-color: #9beb24;
}

.select-container label {
    position: absolute;
    left: 0;
    top: 20px;
    color: #5a6c7d;
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    transform-origin: left top;
}

.select-container select:focus + label,
.select-container select:valid + label,
.select-container.filled label,
.select-container select:not([value=""]) + label {
    transform: translateY(-40px) scale(0.8);
    color: #9beb24;
}

/* Garantir que o label se mova quando há uma opção selecionada */
.select-container select:not([value=""]) + label {
    transform: translateY(-40px) scale(0.8) !important;
    color: #9beb24 !important;
}

/* Regra específica para quando o select tem uma opção válida selecionada */
.select-container select option:checked {
    color: #2c3e50;
}

/* Forçar o label a subir quando há valor selecionado */
.select-container.filled label,
.select-container select[value]:not([value=""]) + label {
    transform: translateY(-40px) scale(0.8) !important;
    color: #9beb24 !important;
}

.select-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #5a6c7d;
    pointer-events: none;
    transition: all 0.3s ease;
}

.select-container select:focus ~ .select-arrow {
    color: #9beb24;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #9beb24;
    transition: width 0.3s ease;
}

.select-container select:focus ~ .input-line {
    width: 100%;
}

/* Textarea Container */
.textarea-container {
    position: relative;
    margin-bottom: 10px;
}

.textarea-container textarea {
    width: 100%;
    padding: 20px 0 10px 0;
    border: none;
    border-bottom: 2px solid #e9ecef;
    background: transparent;
    font-size: 1rem;
    color: #2c3e50;
    transition: all 0.3s ease;
    outline: none;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.textarea-container textarea:focus {
    outline: none;
    border-bottom-color: #9beb24;
}

.textarea-container label {
    position: absolute;
    left: 0;
    top: 20px;
    color: #5a6c7d;
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    transform-origin: left top;
}

.textarea-container textarea:focus + label,
.textarea-container textarea:valid + label,
.textarea-container.filled label {
    transform: translateY(-40px) scale(0.8);
    color: #9beb24;
}

.textarea-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #9beb24;
    transition: width 0.3s ease;
}

.textarea-container textarea:focus ~ .textarea-line {
    width: 100%;
}

/* Radio Options */
.radio-group {
    margin-bottom: 10px;
}

.radio-label {
    display: block;
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 500;
}

.radio-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: white;
}

.radio-option:hover {
    border-color: #9beb24;
    background: rgba(155, 235, 36, 0.05);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #9beb24;
    background: #9beb24;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.radio-option input[type="radio"]:checked ~ span {
    color: #9beb24;
    font-weight: 600;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, #9beb24 0%, #7bc142 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 30px auto 0;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(155, 235, 36, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn.loading .btn-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 30px;
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #9beb24 0%, #7bc142 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin: 20px 0;
    display: none;
}

.success-message.show {
    display: block;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Info */
.form-info {
    background: rgba(155, 235, 36, 0.1);
    border: 1px solid rgba(155, 235, 36, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.form-info p {
    margin: 0;
    color: #2c3e50;
    font-size: 0.95rem;
}

.form-info i {
    color: #9beb24;
}

/* Garantir que labels com valor se movam para cima */
.input-container input[value]:not([value=""]) + label,
.input-container input:not([value=""]) + label {
    transform: translateY(-40px) scale(0.8) !important;
    color: #9beb24 !important;
}

/* Regra específica para campos com placeholder preenchido */
.input-container input[placeholder]:not([placeholder=""]) + label {
    transform: translateY(-40px) scale(0.8) !important;
    color: #9beb24 !important;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 30px 20px;
        margin: 0 15px;
        border-radius: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 0;
        width: 100%;
    }
    
    /* Melhorar o espaçamento dos campos de data e horário no mobile */
    .form-row .input-container,
    .form-row .select-container {
        margin-bottom: 0;
    }
    
    .input-container,
    .select-container,
    .textarea-container {
        margin-bottom: 15px;
    }
    
    /* Garantir que as linhas dos inputs fiquem alinhadas no mobile */
    .input-line,
    .textarea-line {
        width: 100%;
        height: 2px;
        background: #e9ecef;
        position: absolute;
        bottom: 0;
        left: 0;
        transition: all 0.3s ease;
    }
    
    .input-container input:focus ~ .input-line,
    .select-container select:focus ~ .input-line,
    .textarea-container textarea:focus ~ .textarea-line {
        width: 100%;
        background: #9beb24;
    }
    
    .radio-options {
        flex-direction: column;
        gap: 15px;
    }
    
    .radio-option {
        padding: 15px 20px;
        border-radius: 12px;
        background: rgba(248, 249, 250, 0.8);
        border: 2px solid rgba(155, 235, 36, 0.1);
    }
    
    .radio-custom {
        width: 24px;
        height: 24px;
        border-width: 3px;
    }
    
    .radio-option input[type="radio"]:checked + .radio-custom::after {
        width: 10px;
        height: 10px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 18px 30px;
    }
}
